summaryrefslogtreecommitdiff
path: root/package/dropwatch/dropwatch.mk
blob: b9676cbea3d79105ad1cc12d5822e6e459fb582e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#############################################################
#
# dropwatch
#
#############################################################

DROPWATCH_VERSION = 1.4
DROPWATCH_SOURCE = dropwatch-$(DROPWATCH_VERSION).tar.bz2
DROPWATCH_SITE = https://git.fedorahosted.org/cgit/dropwatch.git/snapshot/
DROPWATCH_DEPENDENCIES = readline libnl binutils
DROPWATCH_LICENSE = GPLv2+
DROPWATCH_LICENSE_FILE = COPYING

define DROPWATCH_INSTALL_TARGET_CMDS
  cp $(@D)/src/dropwatch $(TARGET_DIR)/usr/bin
endef

define DROPWATCH_BUILD_CMDS
  $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) build
endef

define DROPWATCH_CLEAN_CMDS
  $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) clean
endef

define DROPWATCH_UNINSTALL_CMDS
  rm -f $(TARGET_DIR)/usr/bin/dropwatch
endef

$(eval $(generic-package))