diff options
author | Yen-Ming Lee <leeym@FreeBSD.org> | 2007-06-16 16:22:22 +0000 |
---|---|---|
committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2007-06-16 16:22:22 +0000 |
commit | 1a473f4770ecb9f20d94abd7f27894f4d648e6ea (patch) | |
tree | 0b4db1f8d43e1a4e051640bb66f04d657ee9d490 /net/linuxigd | |
parent | 653928ea74601e7631f11bbd62b18065dd0159f9 (diff) | |
download | ports-1a473f4770ecb9f20d94abd7f27894f4d648e6ea.tar.gz ports-1a473f4770ecb9f20d94abd7f27894f4d648e6ea.zip |
Notes
Diffstat (limited to 'net/linuxigd')
-rw-r--r-- | net/linuxigd/Makefile | 1 | ||||
-rw-r--r-- | net/linuxigd/files/patch-Makefile | 19 | ||||
-rw-r--r-- | net/linuxigd/pkg-plist | 4 |
3 files changed, 14 insertions, 10 deletions
diff --git a/net/linuxigd/Makefile b/net/linuxigd/Makefile index 09d567986e9c..94ba6a7abaf4 100644 --- a/net/linuxigd/Makefile +++ b/net/linuxigd/Makefile @@ -7,6 +7,7 @@ PORTNAME= linuxigd PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= linux-igd diff --git a/net/linuxigd/files/patch-Makefile b/net/linuxigd/files/patch-Makefile index 63ac998104c4..9f0c9410b85b 100644 --- a/net/linuxigd/files/patch-Makefile +++ b/net/linuxigd/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig Wed May 24 06:16:36 2006 -+++ Makefile Sat Jun 16 18:59:19 2007 +--- Makefile.orig Sun Jun 17 00:17:05 2007 ++++ Makefile Sun Jun 17 00:18:25 2007 @@ -1,25 +1,11 @@ -PREFIX=/usr -LIBUPNP_PREFIX=/usr @@ -28,7 +28,7 @@ all: upnpd upnpd: $(FILES) -@@ -33,11 +19,11 @@ +@@ -33,11 +19,12 @@ rm -f *.o upnpd install: upnpd @@ -40,11 +40,12 @@ - install upnpd $(PREFIX)/sbin - install upnpd.8 $(PREFIX)/share/man/man8 - if [ ! -f /etc/upnpd.conf ]; then install etc/upnpd.conf /etc; fi -+ install -d %%PREFIX%%/etc/linuxigd -+ $(BSD_INSTALL_DATA) etc/gatedesc.xml %%PREFIX%%/etc/linuxigd -+ $(BSD_INSTALL_DATA) etc/gateconnSCPD.xml %%PREFIX%%/etc/linuxigd -+ $(BSD_INSTALL_DATA) etc/gateicfgSCPD.xml %%PREFIX%%/etc/linuxigd -+ $(BSD_INSTALL_DATA) etc/dummy.xml %%PREFIX%%/etc/linuxigd ++ install -d $(PREFIX)/etc/linuxigd ++ $(BSD_INSTALL_DATA) etc/gatedesc.xml $(PREFIX)/etc/linuxigd ++ $(BSD_INSTALL_DATA) etc/gateconnSCPD.xml $(PREFIX)/etc/linuxigd ++ $(BSD_INSTALL_DATA) etc/gateicfgSCPD.xml $(PREFIX)/etc/linuxigd ++ $(BSD_INSTALL_DATA) etc/dummy.xml $(PREFIX)/etc/linuxigd + $(BSD_INSTALL_PROGRAM) upnpd $(PREFIX)/sbin + $(BSD_INSTALL_DATA) upnpd.8 $(PREFIX)/man/man8 -+ if [ ! -f %%PREFIX%%/etc/upnpd.conf ]; then $(BSD_INSTALL_DATA) etc/upnpd.conf %%PREFIX%%/etc; fi ++ $(BSD_INSTALL_DATA) etc/upnpd.conf $(PREFIX)/etc/upnpd.conf.sample ++ if [ ! -f $(PREFIX)/etc/upnpd.conf ]; then $(BSD_INSTALL_DATA) $(PREFIX)/etc/upnpd.conf.sample $(PREFIX)/etc/upnpd.conf; fi diff --git a/net/linuxigd/pkg-plist b/net/linuxigd/pkg-plist index 4225626713ef..51906af9d4c6 100644 --- a/net/linuxigd/pkg-plist +++ b/net/linuxigd/pkg-plist @@ -3,5 +3,7 @@ etc/linuxigd/dummy.xml etc/linuxigd/gateconnSCPD.xml etc/linuxigd/gatedesc.xml etc/linuxigd/gateicfgSCPD.xml -etc/upnpd.conf +@unexec if cmp -s %D/etc/upnpd.conf.sample %D/etc/upnpd.conf; then rm -f %D/etc/upnpd.conf; fi +etc/upnpd.conf.sample +@exec if [ ! -f %D/etc/upnpd.conf ]; then cp %D/etc/upnpd.conf.sample %D/etc/upnpd.conf; fi @dirrm etc/linuxigd |