FreeBSD Bugzilla – Attachment 73194 Details for
Bug 106170
[MAINTAINER] net/wired: fix handling of configuration files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
wired-1.3.1_1.patch
wired-1.3.1_1.patch (text/plain), 3.85 KB, created by
trasz
on 2006-12-02 01:30:09 UTC
(
hide
)
Description:
wired-1.3.1_1.patch
Filename:
MIME Type:
Creator:
trasz
Created:
2006-12-02 01:30:09 UTC
Size:
3.85 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/net/wired/Makefile /home/trasz/wired/Makefile >--- /usr/ports/net/wired/Makefile Thu Nov 23 23:36:05 2006 >+++ /home/trasz/wired/Makefile Sat Dec 2 02:20:38 2006 >@@ -7,11 +7,12 @@ > > PORTNAME= wired > PORTVERSION= 1.3.1 >+PORTREVISION= 1 > CATEGORIES= net > MASTER_SITES= http://www.zankasoftware.com/dist/ > > MAINTAINER= trasz@pin.if.uz.zgora.pl >-COMMENT= Wired Server >+COMMENT= Wired server > > GNU_CONFIGURE= yes > USE_GMAKE= yes >@@ -30,6 +31,18 @@ > fi > @if [ ! -f ${PREFIX}/wired/etc/resolv.conf ]; then \ > ${CP} -p ${PREFIX}/wired/etc/resolv.conf.sample ${PREFIX}/wired/etc/resolv.conf ; \ >+ fi >+ @if [ ! -f ${PREFIX}/wired/banlist ]; then \ >+ ${CP} -p ${PREFIX}/wired/banlist.sample ${PREFIX}/wired/banlist ; \ >+ fi >+ @if [ ! -f ${PREFIX}/wired/groups ]; then \ >+ ${CP} -p ${PREFIX}/wired/groups.sample ${PREFIX}/wired/groups ; \ >+ fi >+ @if [ ! -f ${PREFIX}/wired/news ]; then \ >+ ${CP} -p ${PREFIX}/wired/news.sample ${PREFIX}/wired/news ; \ >+ fi >+ @if [ ! -f ${PREFIX}/wired/users ]; then \ >+ ${CP} -p ${PREFIX}/wired/users.sample ${PREFIX}/wired/users ; \ > fi > PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL > >diff -ruN --exclude=CVS /usr/ports/net/wired/files/patch-Makefile.in /home/trasz/wired/files/patch-Makefile.in >--- /usr/ports/net/wired/files/patch-Makefile.in Thu Nov 23 23:36:05 2006 >+++ /home/trasz/wired/files/patch-Makefile.in Sat Dec 2 02:20:37 2006 >@@ -1,5 +1,5 @@ > --- Makefile.in.orig Sun Jun 18 15:08:08 2006 >-+++ Makefile.in Thu Nov 23 21:07:15 2006 >++++ Makefile.in Sat Dec 2 02:07:59 2006 > @@ -12,8 +12,8 @@ > > WD_VERSION = @WD_VERSION@ >@@ -20,7 +20,27 @@ > chmod +x $@ > > $(rundir)/etc/wired.conf: $(top_srcdir)/wired/wired.conf.in >-@@ -145,15 +145,15 @@ >+@@ -129,31 +129,31 @@ >+ fi >+ >+ if [ ! -f $(installdir)/banlist ]; then \ >+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/banlist $(installdir)/; \ >++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/banlist $(installdir)/banlist.sample; \ >+ fi >+ >+ if [ ! -f $(installdir)/groups ]; then \ >+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/groups $(installdir)/; \ >++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/groups $(installdir)/groups.sample; \ >+ fi >+ >+ if [ ! -f $(installdir)/news ]; then \ >+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/news $(installdir)/; \ >++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/news $(installdir)/news.sample; \ >+ fi >+ >+ if [ ! -f $(installdir)/users ]; then \ >+- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/users $(installdir)/; \ >++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/users $(installdir)/users.sample; \ > fi > > if [ ! -f $(installdir)/etc/wired.conf ]; then \ >diff -ruN --exclude=CVS /usr/ports/net/wired/pkg-plist /home/trasz/wired/pkg-plist >--- /usr/ports/net/wired/pkg-plist Thu Nov 23 23:36:05 2006 >+++ /home/trasz/wired/pkg-plist Sat Dec 2 02:20:38 2006 >@@ -9,10 +9,18 @@ > @exec if [ ! -f %D/wired/etc/resolv.conf ] ; then cp -p %D/%F %B/resolv.conf; fi > wired/files/Uploads/.wired/type > wired/files/Drop Box/.wired/type >-wired/banlist >-wired/groups >-wired/news >-wired/users >+@unexec if cmp -s %D/wired/banlist.sample %D/wired/banlist; then rm -f %D/wired/banlist; fi >+wired/banlist.sample >+@exec if [ ! -f %D/wired/banlist ] ; then cp -p %D/%F %B/banlist; fi >+@unexec if cmp -s %D/wired/groups.sample %D/wired/groups; then rm -f %D/wired/groups; fi >+wired/groups.sample >+@exec if [ ! -f %D/wired/groups ] ; then cp -p %D/%F %B/groups; fi >+@unexec if cmp -s %D/wired/news.sample %D/wired/news; then rm -f %D/wired/news; fi >+wired/news.sample >+@exec if [ ! -f %D/wired/news ] ; then cp -p %D/%F %B/news; fi >+@unexec if cmp -s %D/wired/users.sample %D/wired/users; then rm -f %D/wired/users; fi >+wired/users.sample >+@exec if [ ! -f %D/wired/users ] ; then cp -p %D/%F %B/users; fi > sbin/hl2wired > sbin/wired > bin/wiredctl
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 106170
: 73194