diff options
author | Dima Ruban <dima@FreeBSD.org> | 2001-01-05 14:15:49 +0000 |
---|---|---|
committer | Dima Ruban <dima@FreeBSD.org> | 2001-01-05 14:15:49 +0000 |
commit | 1afce46641d883e271fa152f69d67e4141ef714a (patch) | |
tree | 03b271397f4ffb5a495c00929f35a887a8713869 /palm | |
parent | Update port to 8.2.2p7 (diff) |
rc script fix (supports start/stop thingie now)
Submitted by: joseph@randomnetworks.com
Notes
Notes:
svn path=/head/; revision=36818
Diffstat (limited to 'palm')
-rw-r--r-- | palm/pilot-link-devel/Makefile | 4 | ||||
-rw-r--r-- | palm/pilot-link-devel/files/pilot-link.sh | 15 | ||||
-rw-r--r-- | palm/pilot-link/Makefile | 4 | ||||
-rw-r--r-- | palm/pilot-link/files/pilot-link.sh | 15 |
4 files changed, 32 insertions, 6 deletions
diff --git a/palm/pilot-link-devel/Makefile b/palm/pilot-link-devel/Makefile index 4f6e6dd3bd79..473008577515 100644 --- a/palm/pilot-link-devel/Makefile +++ b/palm/pilot-link-devel/Makefile @@ -28,9 +28,7 @@ MAN1= dlpsh.1 ietf2datebook.1 install-datebook.1 \ MAN7= pilot-link.7 post-install: - @${ECHO} "#!/bin/sh" > ${LOCALBASE}/etc/rc.d/pilot-link.sh - @${ECHO} "" >> ${LOCALBASE}/etc/rc.d/pilot-link.sh - @${ECHO} "${LDCONFIG} -m ${PREFIX}/lib" >> ${LOCALBASE}/etc/rc.d/pilot-link.sh + @{$SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pilot-link.sh > ${PREFIX}/etc/rc.d/pilot-link.sh @${CHMOD} 750 ${LOCALBASE}/etc/rc.d/pilot-link.sh .include <bsd.port.mk> diff --git a/palm/pilot-link-devel/files/pilot-link.sh b/palm/pilot-link-devel/files/pilot-link.sh new file mode 100644 index 000000000000..1e02019b2f90 --- /dev/null +++ b/palm/pilot-link-devel/files/pilot-link.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/pilot/lib + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + echo 64 + ;; +esac diff --git a/palm/pilot-link/Makefile b/palm/pilot-link/Makefile index 4f6e6dd3bd79..473008577515 100644 --- a/palm/pilot-link/Makefile +++ b/palm/pilot-link/Makefile @@ -28,9 +28,7 @@ MAN1= dlpsh.1 ietf2datebook.1 install-datebook.1 \ MAN7= pilot-link.7 post-install: - @${ECHO} "#!/bin/sh" > ${LOCALBASE}/etc/rc.d/pilot-link.sh - @${ECHO} "" >> ${LOCALBASE}/etc/rc.d/pilot-link.sh - @${ECHO} "${LDCONFIG} -m ${PREFIX}/lib" >> ${LOCALBASE}/etc/rc.d/pilot-link.sh + @{$SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pilot-link.sh > ${PREFIX}/etc/rc.d/pilot-link.sh @${CHMOD} 750 ${LOCALBASE}/etc/rc.d/pilot-link.sh .include <bsd.port.mk> diff --git a/palm/pilot-link/files/pilot-link.sh b/palm/pilot-link/files/pilot-link.sh new file mode 100644 index 000000000000..1e02019b2f90 --- /dev/null +++ b/palm/pilot-link/files/pilot-link.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in + start) + /sbin/ldconfig -m %%PREFIX%%/pilot/lib + ;; + stop) + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + echo 64 + ;; +esac |