python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / unscd / unscd.mk
blob54caeb1f95e7ddb6c0210f89ed65722da44edc19
1 ################################################################################
3 # unscd
5 ################################################################################
7 UNSCD_VERSION = 0.52
8 UNSCD_SOURCE = nscd-$(UNSCD_VERSION).c
9 UNSCD_SITE = http://busybox.net/~vda/unscd
10 UNSCD_LICENSE = GPLv2
11 UNSCD_LICENSE_FILES = $(UNSCD_SOURCE)
13 define UNSCD_EXTRACT_CMDS
14 cp $(DL_DIR)/$($(PKG)_SOURCE) $(@D)/
15 endef
17 define UNSCD_BUILD_CMDS
18 cd $(@D); \
19 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -o nscd $(UNSCD_SOURCE)
20 endef
22 define UNSCD_INSTALL_TARGET_CMDS
23 $(INSTALL) -m 755 -D $(@D)/nscd $(TARGET_DIR)/usr/sbin/nscd
24 $(INSTALL) -m 600 -D package/unscd/nscd.conf $(TARGET_DIR)/etc/nscd.conf
25 endef
27 define UNSCD_INSTALL_INIT_SYSV
28 $(INSTALL) -m 755 -D package/unscd/S46unscd \
29 $(TARGET_DIR)/etc/init.d/S46unscd
30 endef
32 define UNSCD_USERS
33 unscd -1 unscd -1 * - - - unscd user
34 endef
36 $(eval $(generic-package))