aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2008-07-31 16:12:03 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2008-07-31 16:12:03 +0000
commit18f529ff22e63e5d643feb95b68f5facff2fbd8e (patch)
treea7a110a90b74e9d68f51f40cf839936b7e2b5c5f /audio
parentb08d7ca64130423c8985891343ff34569637307a (diff)
downloadports-18f529ff22e63e5d643feb95b68f5facff2fbd8e.tar.gz
ports-18f529ff22e63e5d643feb95b68f5facff2fbd8e.zip
Notes
Diffstat (limited to 'audio')
-rw-r--r--audio/autocd/Makefile10
-rw-r--r--audio/autocd/files/autocd.in (renamed from audio/autocd/files/autocd.sh)6
2 files changed, 5 insertions, 11 deletions
diff --git a/audio/autocd/Makefile b/audio/autocd/Makefile
index 821c9eba0bc7..eaa6161a19a6 100644
--- a/audio/autocd/Makefile
+++ b/audio/autocd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= autocd
PORTVERSION= 3.02.12b
+PORTREVISION= 1
CATEGORIES= audio sysutils
MASTER_SITES= ftp://kot.spb.ru/pub/src/projects/autocd/
@@ -21,16 +22,9 @@ MLINKS= cdctl.1 eject.1 cdctl.1 pause.1
PLIST_FILES= sbin/autocd bin/acdplay bin/cdctl bin/pause bin/eject
PORTDOCS= README.rus.html
-USE_RC_SUBR= yes
-RC_SUFX= .sh
-SED_SCRIPT+= -e '{ s,%%PREFIX%%,${PREFIX},g; s,%%RC_SUBR%%,${RC_SUBR},g; }'
-PLIST_FILES+= etc/rc.d/autocd${RC_SUFX}
-
-post-build:
- @${SED} ${SED_SCRIPT} ${FILESDIR}/autocd.sh >${WRKDIR}/autocd.sh
+USE_RC_SUBR= autocd
post-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/autocd.sh ${PREFIX}/etc/rc.d/autocd${RC_SUFX}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
diff --git a/audio/autocd/files/autocd.sh b/audio/autocd/files/autocd.in
index 152cc13cfde4..12dc07a13784 100644
--- a/audio/autocd/files/autocd.sh
+++ b/audio/autocd/files/autocd.in
@@ -30,9 +30,9 @@ stop_cmd()
%%PREFIX%%/bin/cdctl die
}
+load_rc_config $name
+
# set defaults
-autocd_enable=${autocd_enable:-"NO"}
-autocd_flags=${autocd_flags:-""}
+autocd_flags=${autocd_flags-""}
-load_rc_config $name
run_rc_command "$1"