diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2006-11-23 22:36:05 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2006-11-23 22:36:05 +0000 |
commit | a8e0f5eaf976df63a611df1deb8a9acde64d7c57 (patch) | |
tree | 3838e754aec34bc7492c9cb13dc0e8c29036ed02 /net/wired/files | |
parent | 3fc923c38eaaec6746df8dd11dc63a9329efb26d (diff) | |
download | ports-a8e0f5eaf976df63a611df1deb8a9acde64d7c57.tar.gz ports-a8e0f5eaf976df63a611df1deb8a9acde64d7c57.zip |
Notes
Diffstat (limited to 'net/wired/files')
-rw-r--r-- | net/wired/files/patch-Makefile.in | 61 | ||||
-rw-r--r-- | net/wired/files/patch-wired-wiredctl.in | 11 | ||||
-rw-r--r-- | net/wired/files/wired.sh.in | 27 |
3 files changed, 99 insertions, 0 deletions
diff --git a/net/wired/files/patch-Makefile.in b/net/wired/files/patch-Makefile.in new file mode 100644 index 000000000000..97c6444acdcf --- /dev/null +++ b/net/wired/files/patch-Makefile.in @@ -0,0 +1,61 @@ +--- Makefile.in.orig Sun Jun 18 15:08:08 2006 ++++ Makefile.in Thu Nov 23 21:07:15 2006 +@@ -12,8 +12,8 @@ + + WD_VERSION = @WD_VERSION@ + WD_MAINTAINER = @WD_MAINTAINER@ +-WD_USER = @WD_USER@ +-WD_GROUP = @WD_GROUP@ ++WD_USER = wired ++WD_GROUP = wired + + DISTFILES = INSTALL LICENSE NEWS README Makefile Makefile.in \ + config.guess config.status config.h.in config.sub configure \ +@@ -86,7 +86,7 @@ + + $(rundir)/wiredctl: $(top_srcdir)/wired/wiredctl.in + @test -d $(@D) || mkdir -p $(@D) +- sed -e 's,@wireddir\@,$(fake_prefix)/$(wireddir),g' $< > $@ ++ sed -e 's,@wireddir\@,$(fake_prefix)/$(wireddir),g' -e 's,@prefix\@,$(prefix),g' $< > $@ + chmod +x $@ + + $(rundir)/etc/wired.conf: $(top_srcdir)/wired/wired.conf.in +@@ -145,15 +145,15 @@ + fi + + if [ ! -f $(installdir)/etc/wired.conf ]; then \ +- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/etc/wired.conf $(installdir)/etc/; \ ++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/etc/wired.conf $(installdir)/etc/wired.conf.sample; \ + fi + +- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/hl2wired $(installdir)/ +- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/wired $(installdir)/ +- $(INSTALL) -m 755 -o $(WD_USER) -g $(WD_GROUP) $(rundir)/wiredctl $(installdir)/ ++ $(INSTALL) -m 755 -o 0 -g 0 $(rundir)/hl2wired $(prefix)/sbin/ ++ $(INSTALL) -m 755 -o 0 -g 0 $(rundir)/wired $(prefix)/sbin/ ++ $(INSTALL) -m 755 -o 0 -g 0 $(rundir)/wiredctl $(prefix)/bin/ + + if [ -f /etc/resolv.conf ]; then \ +- $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) /etc/resolv.conf $(installdir)/etc/; \ ++ $(INSTALL) -m 644 -o $(WD_USER) -g $(WD_GROUP) /etc/resolv.conf $(installdir)/etc/resolv.conf.sample; \ + fi + + @if [ -f .update ]; then \ +@@ -161,7 +161,7 @@ + echo "Update complete!"; \ + echo ""; \ + echo "You should now run:"; \ +- echo " $(installdir)/wiredctl restart"; \ ++ echo " $(prefix)/bin/wiredctl restart"; \ + echo "to restart a running server."; \ + else \ + echo ""; \ +@@ -172,7 +172,7 @@ + echo "Remember to edit $(installdir)/etc/wired.conf if you want to make any changes before starting the server."; \ + echo ""; \ + echo "When you are done, run:"; \ +- echo " $(installdir)/wiredctl start"; \ ++ echo " $(prefix)/bin/wiredctl start"; \ + echo "to start the server."; \ + fi + diff --git a/net/wired/files/patch-wired-wiredctl.in b/net/wired/files/patch-wired-wiredctl.in new file mode 100644 index 000000000000..cd1509b31b6d --- /dev/null +++ b/net/wired/files/patch-wired-wiredctl.in @@ -0,0 +1,11 @@ +--- wired/wiredctl.in.orig Thu Nov 23 19:59:48 2006 ++++ wired/wiredctl.in Thu Nov 23 20:00:58 2006 +@@ -13,7 +13,7 @@ + CERTIFICATE="@wireddir@/etc/certificate.pem" + + # The path to your wired binary +-WIRED="@wireddir@/wired" ++WIRED="@prefix@/sbin/wired" + + # Flags to pass to wired + WIREDFLAGS="-d @wireddir@ -ll -u" diff --git a/net/wired/files/wired.sh.in b/net/wired/files/wired.sh.in new file mode 100644 index 000000000000..e902407f064b --- /dev/null +++ b/net/wired/files/wired.sh.in @@ -0,0 +1,27 @@ +#!/bin/sh + +# PROVIDE: wired +# REQUIRE: +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# wired_enable (bool): Set to NO by default. +# Set it to YES to enable wired. +# + +. %%RC_SUBR%% + +name="wired" +rcvar=${name}_enable + +pidfile=%%PREFIX%%/wired/wired.pid +command=%%PREFIX%%/sbin/${name} + +load_rc_config $name + +: ${wired_enable="NO"} + +command_args="" + +run_rc_command "$1" |