samba4: bump to version 4.4.9
[buildroot-gz.git] / package / minissdpd / minissdpd.mk
blob5c8bd371cb83877f211d9a5bb1994ebf45ce2a78
1 ################################################################################
3 # minissdpd
5 ################################################################################
7 MINISSDPD_VERSION = 1.5
8 MINISSDPD_SITE = http://miniupnp.free.fr/files
9 MINISSDPD_LICENSE = BSD-3c
10 MINISSDPD_LICENSE_FILES = LICENSE
11 MINISSDPD_DEPENDENCIES = libnfnetlink
13 define MINISSDPD_BUILD_CMDS
14 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
15 CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" \
16 -C $(@D)
17 endef
19 define MINISSDPD_INSTALL_TARGET_CMDS
20 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
21 PREFIX=$(TARGET_DIR) install
22 endef
24 # Use dedicated init scripts for systemV and systemd instead of using
25 # minissdpd.init.d.script as it is not compatible with buildroot init system
26 define MINISSDPD_INSTALL_INIT_SYSV
27 $(RM) $(TARGET_DIR)/etc/init.d/minissdpd
28 $(INSTALL) -D -m 0755 package/minissdpd/S50minissdpd \
29 $(TARGET_DIR)/etc/init.d/S50minissdpd
30 endef
32 define MINISSDPD_INSTALL_INIT_SYSTEMD
33 $(INSTALL) -D -m 644 package/minissdpd/minissdpd.service \
34 $(TARGET_DIR)/usr/lib/systemd/system/minissdpd.service
35 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
36 ln -sf ../../../../usr/lib/systemd/system/minissdpd.service \
37 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/minissdpd.service
38 endef
40 $(eval $(generic-package))