![Maxime Hadjinlian](/assets/img/avatar_default.png)
Instead of DL_DIR, the package should now use $(PKG)_DL_DIR to ease the transition into a new directory structure for DL_DIR. This commit has been generated with the following scripts: for i in $(find . -iname "*.mk"); do if ! grep -q "\$(DL_DIR)" ${i}; then continue fi pkg_name="$(basename $(dirname ${i}))" [ "${pkg_name}" = "package" ] && continue raw_pkg_name=$(echo ${pkg_name} | tr [a-z] [A-Z] | tr '-' '_') pkg_dl_dir="${raw_pkg_name}_DL_DIR" sed -i "s/\$(DL_DIR)/\$($pkg_dl_dir)/" ${i} done Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
37 lines
922 B
Makefile
37 lines
922 B
Makefile
################################################################################
|
|
#
|
|
# unscd
|
|
#
|
|
################################################################################
|
|
|
|
UNSCD_VERSION = 0.52
|
|
UNSCD_SOURCE = nscd-$(UNSCD_VERSION).c
|
|
UNSCD_SITE = http://busybox.net/~vda/unscd
|
|
UNSCD_LICENSE = GPL-2.0
|
|
UNSCD_LICENSE_FILES = $(UNSCD_SOURCE)
|
|
|
|
define UNSCD_EXTRACT_CMDS
|
|
cp $(UNSCD_DL_DIR)/$($(PKG)_SOURCE) $(@D)/
|
|
endef
|
|
|
|
define UNSCD_BUILD_CMDS
|
|
cd $(@D); \
|
|
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -o nscd $(UNSCD_SOURCE)
|
|
endef
|
|
|
|
define UNSCD_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 755 -D $(@D)/nscd $(TARGET_DIR)/usr/sbin/nscd
|
|
$(INSTALL) -m 600 -D package/unscd/nscd.conf $(TARGET_DIR)/etc/nscd.conf
|
|
endef
|
|
|
|
define UNSCD_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 755 -D package/unscd/S46unscd \
|
|
$(TARGET_DIR)/etc/init.d/S46unscd
|
|
endef
|
|
|
|
define UNSCD_USERS
|
|
unscd -1 unscd -1 * - - - unscd user
|
|
endef
|
|
|
|
$(eval $(generic-package))
|