pkgsrc-wip/linuxigd/Makefile

31 lines
772 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.11 2007/08/19 02:21:42 obache Exp $
#
DISTNAME= linuxigd-1.0
CATEGORIES= net
2006-02-11 17:20:06 +01:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=linux-igd/}
2007-04-01 04:19:12 +02:00
MAINTAINER= obache@NetBSD.org
HOMEPAGE= http://linux-igd.sourceforge.net/
COMMENT= Linux UPnP Internet Gateway Device
Update linuxigd to 0.95. Main cange since 0.92 is code written with C instead of C++. Complete ChangeLog is unknown. Recent changelog: 2006-08-13 Daniel J Blueman <daniel.blueman@gmail.com> * linux-igd 0.95 released 2006-07-25 Daniel J Blueman <daniel.blueman@gmail.com> * Added option ALLOW_MULTICAST to init script, which when not set to 'no', enables multicast packets to be received by internal interface * Added '-f' option to run in foreground for debugging etc * Validate internal interface name correctly * Other minor tweaks, such as making variables local to block to save on stack space, interface name length fixes 2006-05-23 Daniel J Blueman <daniel.blueman@gmail.com> * Added manpage contributed by Jose' Fonseca <j_r_fonseca@yahoo.co.uk> 2006-05-19 Daniel J Blueman <daniel.blueman@gmail.com> * Protect against bad addresses being passed to inet_addr() * Enable compiler optimization in makefile * Fix compile warnings and uninitialised variable possible use * Some makefile and code cleanups 2006-05-04 mhyllander * Updated installation instructions for libupnp 1.3.1, and also added a note about installing with precompiled libraries on Fedora Core 5. 2006-02-01 mhyllander * Fixed problem with multiple children being forked when using iptables to modify the netfilter tables. upnpd was doing a fork+system without a following exit, so children continued living on. Now a fork+exec+exit is done. * Included a patch from Juho Va"ha"-Herttua to fix inserting of forward rules when using libiptc. http://sourceforge.net/forum/forum.php?thread_id=1270012&forum_id=174960 http://users.tkk.fi/~jvahaher/linux-igd/linux-igd_insert.diff * Added handling of port mapping duration. Port mappings will be automatically removed when they expire. If the client doesn't set a duration, a default duration can be used. The default duration can either be set as a relative time (e.g. two hours), or as an absolute time of day (e.g. 04:00 every day). * You can force upnpd to delete all port mappings by sending it the SIGUSR1 signal. The SIGINT and SIGTERM signals terminate upnpd. * Made parsing of the configuration file more secure by guarding against buffer overflow. * In the configuration file, the path to the iptables command is now specified between quotes, to allow all characters to be used in the path. * syslog messages are now sent to local6. Trace output is sent to LOG_DEBUG. You can specify the log level in the configuration file by setting debug_mode between 0 (no output) and 3 (all output). * added an example init.d script: etc/upnpd.rc. * Some code cleanups, like only defining globals in one place (i.e. not in an include file), and some improvements to the Makefile.
2006-08-27 17:00:00 +02:00
USE_LANGUAGES= c
USE_TOOLS+= gmake pkg-config
.include "options.mk"
Update linuxigd to 0.95. Main cange since 0.92 is code written with C instead of C++. Complete ChangeLog is unknown. Recent changelog: 2006-08-13 Daniel J Blueman <daniel.blueman@gmail.com> * linux-igd 0.95 released 2006-07-25 Daniel J Blueman <daniel.blueman@gmail.com> * Added option ALLOW_MULTICAST to init script, which when not set to 'no', enables multicast packets to be received by internal interface * Added '-f' option to run in foreground for debugging etc * Validate internal interface name correctly * Other minor tweaks, such as making variables local to block to save on stack space, interface name length fixes 2006-05-23 Daniel J Blueman <daniel.blueman@gmail.com> * Added manpage contributed by Jose' Fonseca <j_r_fonseca@yahoo.co.uk> 2006-05-19 Daniel J Blueman <daniel.blueman@gmail.com> * Protect against bad addresses being passed to inet_addr() * Enable compiler optimization in makefile * Fix compile warnings and uninitialised variable possible use * Some makefile and code cleanups 2006-05-04 mhyllander * Updated installation instructions for libupnp 1.3.1, and also added a note about installing with precompiled libraries on Fedora Core 5. 2006-02-01 mhyllander * Fixed problem with multiple children being forked when using iptables to modify the netfilter tables. upnpd was doing a fork+system without a following exit, so children continued living on. Now a fork+exec+exit is done. * Included a patch from Juho Va"ha"-Herttua to fix inserting of forward rules when using libiptc. http://sourceforge.net/forum/forum.php?thread_id=1270012&forum_id=174960 http://users.tkk.fi/~jvahaher/linux-igd/linux-igd_insert.diff * Added handling of port mapping duration. Port mappings will be automatically removed when they expire. If the client doesn't set a duration, a default duration can be used. The default duration can either be set as a relative time (e.g. two hours), or as an absolute time of day (e.g. 04:00 every day). * You can force upnpd to delete all port mappings by sending it the SIGUSR1 signal. The SIGINT and SIGTERM signals terminate upnpd. * Made parsing of the configuration file more secure by guarding against buffer overflow. * In the configuration file, the path to the iptables command is now specified between quotes, to allow all characters to be used in the path. * syslog messages are now sent to local6. Trace output is sent to LOG_DEBUG. You can specify the log level in the configuration file by setting debug_mode between 0 (no output) and 3 (all output). * added an example init.d script: etc/upnpd.rc. * Some code cleanups, like only defining globals in one place (i.e. not in an include file), and some improvements to the Makefile.
2006-08-27 17:00:00 +02:00
INSTALLATION_DIRS= ${PKG_SYSCONFDIR:S|^${PREFIX}/||}/linuxigd
Update linuxigd to 0.95. Main cange since 0.92 is code written with C instead of C++. Complete ChangeLog is unknown. Recent changelog: 2006-08-13 Daniel J Blueman <daniel.blueman@gmail.com> * linux-igd 0.95 released 2006-07-25 Daniel J Blueman <daniel.blueman@gmail.com> * Added option ALLOW_MULTICAST to init script, which when not set to 'no', enables multicast packets to be received by internal interface * Added '-f' option to run in foreground for debugging etc * Validate internal interface name correctly * Other minor tweaks, such as making variables local to block to save on stack space, interface name length fixes 2006-05-23 Daniel J Blueman <daniel.blueman@gmail.com> * Added manpage contributed by Jose' Fonseca <j_r_fonseca@yahoo.co.uk> 2006-05-19 Daniel J Blueman <daniel.blueman@gmail.com> * Protect against bad addresses being passed to inet_addr() * Enable compiler optimization in makefile * Fix compile warnings and uninitialised variable possible use * Some makefile and code cleanups 2006-05-04 mhyllander * Updated installation instructions for libupnp 1.3.1, and also added a note about installing with precompiled libraries on Fedora Core 5. 2006-02-01 mhyllander * Fixed problem with multiple children being forked when using iptables to modify the netfilter tables. upnpd was doing a fork+system without a following exit, so children continued living on. Now a fork+exec+exit is done. * Included a patch from Juho Va"ha"-Herttua to fix inserting of forward rules when using libiptc. http://sourceforge.net/forum/forum.php?thread_id=1270012&forum_id=174960 http://users.tkk.fi/~jvahaher/linux-igd/linux-igd_insert.diff * Added handling of port mapping duration. Port mappings will be automatically removed when they expire. If the client doesn't set a duration, a default duration can be used. The default duration can either be set as a relative time (e.g. two hours), or as an absolute time of day (e.g. 04:00 every day). * You can force upnpd to delete all port mappings by sending it the SIGUSR1 signal. The SIGINT and SIGTERM signals terminate upnpd. * Made parsing of the configuration file more secure by guarding against buffer overflow. * In the configuration file, the path to the iptables command is now specified between quotes, to allow all characters to be used in the path. * syslog messages are now sent to local6. Trace output is sent to LOG_DEBUG. You can specify the log level in the configuration file by setting debug_mode between 0 (no output) and 3 (all output). * added an example init.d script: etc/upnpd.rc. * Some code cleanups, like only defining globals in one place (i.e. not in an include file), and some improvements to the Makefile.
2006-08-27 17:00:00 +02:00
MAKE_ENV+= LIBS=${LIBS:M*:Q}
Update linuxigd to 0.95. Main cange since 0.92 is code written with C instead of C++. Complete ChangeLog is unknown. Recent changelog: 2006-08-13 Daniel J Blueman <daniel.blueman@gmail.com> * linux-igd 0.95 released 2006-07-25 Daniel J Blueman <daniel.blueman@gmail.com> * Added option ALLOW_MULTICAST to init script, which when not set to 'no', enables multicast packets to be received by internal interface * Added '-f' option to run in foreground for debugging etc * Validate internal interface name correctly * Other minor tweaks, such as making variables local to block to save on stack space, interface name length fixes 2006-05-23 Daniel J Blueman <daniel.blueman@gmail.com> * Added manpage contributed by Jose' Fonseca <j_r_fonseca@yahoo.co.uk> 2006-05-19 Daniel J Blueman <daniel.blueman@gmail.com> * Protect against bad addresses being passed to inet_addr() * Enable compiler optimization in makefile * Fix compile warnings and uninitialised variable possible use * Some makefile and code cleanups 2006-05-04 mhyllander * Updated installation instructions for libupnp 1.3.1, and also added a note about installing with precompiled libraries on Fedora Core 5. 2006-02-01 mhyllander * Fixed problem with multiple children being forked when using iptables to modify the netfilter tables. upnpd was doing a fork+system without a following exit, so children continued living on. Now a fork+exec+exit is done. * Included a patch from Juho Va"ha"-Herttua to fix inserting of forward rules when using libiptc. http://sourceforge.net/forum/forum.php?thread_id=1270012&forum_id=174960 http://users.tkk.fi/~jvahaher/linux-igd/linux-igd_insert.diff * Added handling of port mapping duration. Port mappings will be automatically removed when they expire. If the client doesn't set a duration, a default duration can be used. The default duration can either be set as a relative time (e.g. two hours), or as an absolute time of day (e.g. 04:00 every day). * You can force upnpd to delete all port mappings by sending it the SIGUSR1 signal. The SIGINT and SIGTERM signals terminate upnpd. * Made parsing of the configuration file more secure by guarding against buffer overflow. * In the configuration file, the path to the iptables command is now specified between quotes, to allow all characters to be used in the path. * syslog messages are now sent to local6. Trace output is sent to LOG_DEBUG. You can specify the log level in the configuration file by setting debug_mode between 0 (no output) and 3 (all output). * added an example init.d script: etc/upnpd.rc. * Some code cleanups, like only defining globals in one place (i.e. not in an include file), and some improvements to the Makefile.
2006-08-27 17:00:00 +02:00
CONF_FILES= ${PREFIX}/share/examples/upnpd.conf ${PKG_SYSCONFDIR:Q}/upnpd.conf
RCD_SCRIPTS= linuxigd
SUBST_CLASSES+= cfgdir
SUBST_STAGE.cfgdir= pre-configure
Update linuxigd to 0.95. Main cange since 0.92 is code written with C instead of C++. Complete ChangeLog is unknown. Recent changelog: 2006-08-13 Daniel J Blueman <daniel.blueman@gmail.com> * linux-igd 0.95 released 2006-07-25 Daniel J Blueman <daniel.blueman@gmail.com> * Added option ALLOW_MULTICAST to init script, which when not set to 'no', enables multicast packets to be received by internal interface * Added '-f' option to run in foreground for debugging etc * Validate internal interface name correctly * Other minor tweaks, such as making variables local to block to save on stack space, interface name length fixes 2006-05-23 Daniel J Blueman <daniel.blueman@gmail.com> * Added manpage contributed by Jose' Fonseca <j_r_fonseca@yahoo.co.uk> 2006-05-19 Daniel J Blueman <daniel.blueman@gmail.com> * Protect against bad addresses being passed to inet_addr() * Enable compiler optimization in makefile * Fix compile warnings and uninitialised variable possible use * Some makefile and code cleanups 2006-05-04 mhyllander * Updated installation instructions for libupnp 1.3.1, and also added a note about installing with precompiled libraries on Fedora Core 5. 2006-02-01 mhyllander * Fixed problem with multiple children being forked when using iptables to modify the netfilter tables. upnpd was doing a fork+system without a following exit, so children continued living on. Now a fork+exec+exit is done. * Included a patch from Juho Va"ha"-Herttua to fix inserting of forward rules when using libiptc. http://sourceforge.net/forum/forum.php?thread_id=1270012&forum_id=174960 http://users.tkk.fi/~jvahaher/linux-igd/linux-igd_insert.diff * Added handling of port mapping duration. Port mappings will be automatically removed when they expire. If the client doesn't set a duration, a default duration can be used. The default duration can either be set as a relative time (e.g. two hours), or as an absolute time of day (e.g. 04:00 every day). * You can force upnpd to delete all port mappings by sending it the SIGUSR1 signal. The SIGINT and SIGTERM signals terminate upnpd. * Made parsing of the configuration file more secure by guarding against buffer overflow. * In the configuration file, the path to the iptables command is now specified between quotes, to allow all characters to be used in the path. * syslog messages are now sent to local6. Trace output is sent to LOG_DEBUG. You can specify the log level in the configuration file by setting debug_mode between 0 (no output) and 3 (all output). * added an example init.d script: etc/upnpd.rc. * Some code cleanups, like only defining globals in one place (i.e. not in an include file), and some improvements to the Makefile.
2006-08-27 17:00:00 +02:00
SUBST_FILES.cfgdir= globals.h etc/upnpd.conf
SUBST_SED.cfgdir= -e 's|@CONFDIR@|${PKG_SYSCONFDIR}|'
.include "../../net/libupnp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"