aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2004-03-29 16:42:14 +0800
committerosa <osa@FreeBSD.org>2004-03-29 16:42:14 +0800
commit25baf217b2ac542ec19e5f2e8078bcaa302393ea (patch)
treed8160bb88409a902d8416c797321079f7719282b /audio
parent5c3f1ccbf807d241b05a0644900a0ed534536f42 (diff)
downloadfreebsd-ports-gnome-25baf217b2ac542ec19e5f2e8078bcaa302393ea.tar.gz
freebsd-ports-gnome-25baf217b2ac542ec19e5f2e8078bcaa302393ea.tar.zst
freebsd-ports-gnome-25baf217b2ac542ec19e5f2e8078bcaa302393ea.zip
Update to 3.02.11b.
Use RCng. Move pkg-files to Makefile. Fix LIB_DEPENDS. SIZEfy. Submitted by: Dmitry Afanasiev <KOT@MATPOCKuH.Ru> (maintainer)
Diffstat (limited to 'audio')
-rw-r--r--audio/autocd/Makefile17
-rw-r--r--audio/autocd/distinfo3
-rw-r--r--audio/autocd/files/autocd.sh38
-rw-r--r--audio/autocd/pkg-plist8
4 files changed, 54 insertions, 12 deletions
diff --git a/audio/autocd/Makefile b/audio/autocd/Makefile
index dd6a942afb12..d9cc29b0fe18 100644
--- a/audio/autocd/Makefile
+++ b/audio/autocd/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= autocd
-PORTVERSION= 3.02.10a
+PORTVERSION= 3.02.11b
CATEGORIES= audio sysutils
MASTER_SITES= ftp://kot.spb.ru/pub/src/projects/autocd/
@@ -18,17 +18,28 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= cdctl.1 acdplay.1
MAN8= autocd.8
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
.include <bsd.port.pre.mk>
+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}
+
.if ${OSVERSION} < 400010
-LIB_DEPENDS= ncurses.5:${PORTSDIR}/devel/ncurses
+LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
.endif
+post-build:
+ @${SED} ${SED_SCRIPT} ${FILESDIR}/autocd.sh >${WRKDIR}/autocd.sh
+
post-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/autocd.sh ${PREFIX}/etc/rc.d/autocd${RC_SUFX}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.rus.html ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
diff --git a/audio/autocd/distinfo b/audio/autocd/distinfo
index bcb6afbacda1..3bb09f1bb1c9 100644
--- a/audio/autocd/distinfo
+++ b/audio/autocd/distinfo
@@ -1 +1,2 @@
-MD5 (autocd-3.02.10a.tar.gz) = de5f2e0945a6868e37a6b0dc807ad4ca
+MD5 (autocd-3.02.11b.tar.gz) = b09e49cf73215d7ae70b8a45fab5dd1e
+SIZE (autocd-3.02.11b.tar.gz) = 53480
diff --git a/audio/autocd/files/autocd.sh b/audio/autocd/files/autocd.sh
new file mode 100644
index 000000000000..0c078948a1d5
--- /dev/null
+++ b/audio/autocd/files/autocd.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: autocd
+# REQUIRE:
+# BEFORE:
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable autocd:
+#
+#autocd_enable="YES"
+#
+# See autocd(8) for flags
+#
+
+. %%RC_SUBR%%
+
+name=autocd
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/autocd
+
+stop_cmd=stop_cmd
+
+stop_cmd()
+{
+ %%PREFIX%%/bin/cdctl die
+}
+
+# set defaults
+autocd_enable=${autocd_enable:-"NO"}
+autocd_flags=${autocd_flags:-""}
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/audio/autocd/pkg-plist b/audio/autocd/pkg-plist
deleted file mode 100644
index 9a6f4321543f..000000000000
--- a/audio/autocd/pkg-plist
+++ /dev/null
@@ -1,8 +0,0 @@
-bin/acdplay
-bin/autocd
-bin/cdctl
-bin/pause
-bin/eject
-etc/rc.d/autocd.sh
-%%PORTDOCS%%%%DOCSDIR%%/README.rus.html
-%%PORTDOCS%%@dirrm %%DOCSDIR%%