FreeBSD Bugzilla – Attachment 43117 Details for
Bug 67052
rcNG'fy totd
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.97 KB, created by
Hajimu UMEMOTO
on 2004-05-22 18:00:48 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Hajimu UMEMOTO
Created:
2004-05-22 18:00:48 UTC
Size:
1.97 KB
patch
obsolete
>Index: Makefile >diff -u Makefile.orig Makefile >--- Makefile.orig Sat Sep 27 03:16:51 2003 >+++ Makefile Sun May 23 01:12:29 2004 >@@ -6,6 +6,7 @@ > > PORTNAME= totd > PORTVERSION= 1.4 >+PORTREVISION= 1 > CATEGORIES= dns ipv6 > MASTER_SITES= ftp://ftp.pasta.cs.uit.no/pub/Vermicelli/ > >@@ -14,11 +15,15 @@ > > MAN8= totd.8 > >+USE_RC_SUBR= YES > GNU_CONFIGURE= YES > >+RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} >+ > post-install: > ${INSTALL_DATA} ${FILESDIR}/totd.conf.sample ${PREFIX}/etc >- @${SED} 's@%PREFIX%@${LOCALBASE}@g' ${FILESDIR}/totd.sh > ${PREFIX}/etc/rc.d/totd.sh >- @${CHMOD} +x ${PREFIX}/etc/rc.d/totd.sh >+ @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ >+ ${FILESDIR}/totd.sh > ${PREFIX}/etc/rc.d/totd.sh >+ @${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/totd.sh > > .include <bsd.port.mk> >Index: files/totd.sh >diff -u files/totd.sh.orig files/totd.sh >--- files/totd.sh.orig Mon Nov 4 00:51:39 2002 >+++ files/totd.sh Sun May 23 01:43:52 2004 >@@ -1,18 +1,37 @@ > #!/bin/sh >+# >+# $FreeBSD$ >+# > >-case "$1" in >- start) >- if [ -x %PREFIX%/sbin/totd ]; then >- %PREFIX%/sbin/totd && echo -n ' totd' >- fi >- ;; >- >- stop) >- /usr/bin/killall totd && echo -n ' totd' >- ;; >- >- *) >- echo "Usage: `basename $0` { start | stop }" >- exit 64 >- ;; >-esac >+# PROVIDE: totd >+# REQUIRE: SERVERS >+# BEFORE: DAEMON >+# KEYWORD: FreeBSD >+# >+# NOTE for FreeBSD 5.0+: >+# If you want this script to start with the base rc scripts >+# move totd.sh to /etc/rc.d/totd >+ >+prefix=%%PREFIX%% >+ >+# Define these totd_* variables in one of these files: >+# /etc/rc.conf >+# /etc/rc.conf.local >+# /etc/rc.conf.d/totd >+# >+# DO NOT CHANGE THESE DEFAULT VALUES HERE >+# >+totd_enable=${totd_enable:-"NO"} # Enable totd >+#totd_program="${prefix}/sbin/totd" # Location of totd >+totd_flags=${totd_flags:-""} # Flags to totd program >+ >+. %%RC_SUBR%% >+ >+name="totd" >+rcvar=`set_rcvar` >+command="${prefix}/sbin/${name}" >+pidfile="/var/run/${name}.pid" >+required_files="${prefix}/etc/${name}.conf" >+ >+load_rc_config $name >+run_rc_command "$1"
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 67052
: 43117