View | Details | Raw Unified | Return to bug 125623
Collapse All | Expand All

(-)Makefile (-8 / +5 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	autocd
8
PORTNAME=	autocd
9
PORTVERSION=	3.02.12b
9
PORTVERSION=	3.02.12b
10
PORTREVISION=	1
10
CATEGORIES=	audio sysutils
11
CATEGORIES=	audio sysutils
11
MASTER_SITES=	ftp://kot.spb.ru/pub/src/projects/autocd/
12
MASTER_SITES=	ftp://kot.spb.ru/pub/src/projects/autocd/
12
13
Lines 15-36 Link Here
15
16
16
GNU_CONFIGURE=	yes
17
GNU_CONFIGURE=	yes
17
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
18
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
19
.if !defined (NO_INSTALL_MANPAGES)
18
MAN1=		cdctl.1 acdplay.1
20
MAN1=		cdctl.1 acdplay.1
19
MAN8=		autocd.8
21
MAN8=		autocd.8
20
MLINKS=		cdctl.1 eject.1 cdctl.1 pause.1
22
MLINKS=		cdctl.1 eject.1 cdctl.1 pause.1
23
.endif
24
21
PLIST_FILES=	sbin/autocd bin/acdplay bin/cdctl bin/pause bin/eject
25
PLIST_FILES=	sbin/autocd bin/acdplay bin/cdctl bin/pause bin/eject
22
PORTDOCS=	README.rus.html
26
PORTDOCS=	README.rus.html
23
27
24
USE_RC_SUBR=	yes
28
USE_RC_SUBR=	autocd
25
RC_SUFX=	.sh
26
SED_SCRIPT+=	-e '{ s,%%PREFIX%%,${PREFIX},g; s,%%RC_SUBR%%,${RC_SUBR},g; }'
27
PLIST_FILES+=	etc/rc.d/autocd${RC_SUFX}
28
29
post-build:
30
	@${SED} ${SED_SCRIPT} ${FILESDIR}/autocd.sh >${WRKDIR}/autocd.sh
31
29
32
post-install:
30
post-install:
33
	${INSTALL_SCRIPT} ${WRKDIR}/autocd.sh ${PREFIX}/etc/rc.d/autocd${RC_SUFX}
34
.if !defined(NOPORTDOCS)
31
.if !defined(NOPORTDOCS)
35
	${MKDIR} ${DOCSDIR}
32
	${MKDIR} ${DOCSDIR}
36
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
33
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
(-)files/autocd.in (+38 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/audio/autocd/files/autocd.sh,v 1.2 2006/02/20 20:46:47 dougb Exp $
4
#
5
6
# PROVIDE: autocd
7
# REQUIRE:
8
# BEFORE:
9
# KEYWORD: shutdown
10
11
#
12
# Add the following lines to /etc/rc.conf to enable autocd:
13
#
14
#autocd_enable="YES"
15
#
16
# See autocd(8) for flags
17
#
18
19
. %%RC_SUBR%%
20
21
name=autocd
22
rcvar=`set_rcvar`
23
24
command=%%PREFIX%%/sbin/autocd
25
26
load_rc_config $name
27
28
autocd_enable=${autocd_enable:-"NO"}
29
autocd_flags=${autocd_flags:-""}
30
31
stop_cmd=stop_cmd
32
33
stop_cmd()
34
{
35
  %%PREFIX%%/bin/cdctl die
36
}
37
38
run_rc_command "$1"
(-)files/autocd.sh (-38 lines)
Removed Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/audio/autocd/files/autocd.sh,v 1.2 2006/02/20 20:46:47 dougb Exp $
4
#
5
6
# PROVIDE: autocd
7
# REQUIRE:
8
# BEFORE:
9
# KEYWORD: shutdown
10
11
#
12
# Add the following lines to /etc/rc.conf to enable autocd:
13
#
14
#autocd_enable="YES"
15
#
16
# See autocd(8) for flags
17
#
18
19
. %%RC_SUBR%%
20
21
name=autocd
22
rcvar=`set_rcvar`
23
24
command=%%PREFIX%%/sbin/autocd
25
26
stop_cmd=stop_cmd
27
28
stop_cmd()
29
{
30
  %%PREFIX%%/bin/cdctl die
31
}
32
33
# set defaults
34
autocd_enable=${autocd_enable:-"NO"}
35
autocd_flags=${autocd_flags:-""}
36
37
load_rc_config $name
38
run_rc_command "$1"

Return to bug 125623