add RCD script

This commit is contained in:
pancake ;) 2005-04-25 13:36:32 +00:00 committed by Thomas Klausner
parent a7f6589664
commit 774deb2236
3 changed files with 25 additions and 2 deletions

View file

@ -1,20 +1,26 @@
# $NetBSD: Makefile,v 1.2 2005/04/11 21:09:38 tvierling Exp $
# $NetBSD: Makefile,v 1.3 2005/04/25 13:36:32 poppnk Exp $
#
DISTNAME= acpid-1.0.4
CATEGORIES= wip linux sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=acpid/}
PKGREVISION= 1
MAINTAINER= pancake@phreaker.net
HOMEPAGE= http://acpid.sourceforge.net/
COMMENT= Linux ACPI event handler
EGDIR= ${PKG_SYSCONFDIR}/acpid ${PREFIX}/share/examples/acpid
USE_PKGINSTALL= yes
RCD_SCRIPTS= acpid
USE_GNU_TOOLS= make
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/acpid ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/acpi_listen ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/acpid.8 ${PREFIX}/man/man8/
${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/acpid
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/acpid/
${CP} -rf ${WRKSRC}/samples/* ${PREFIX}/share/examples/acpid/

View file

@ -1,4 +1,5 @@
$NetBSD: distinfo,v 1.1.1.1 2005/01/03 19:52:33 poppnk Exp $
$NetBSD: distinfo,v 1.2 2005/04/25 13:36:32 poppnk Exp $
SHA1 (acpid-1.0.4.tar.gz) = 229376815a861d798755c789727151dc0b2bc8a0
RMD160 (acpid-1.0.4.tar.gz) = ddf3cb4e2df7126c71130f89086473b1aa8656b1
Size (acpid-1.0.4.tar.gz) = 23416 bytes

16
acpid/files/acpid.sh Normal file
View file

@ -0,0 +1,16 @@
#!/bin/sh
#
# $NetBSD: acpid.sh,v 1.1 2005/04/25 13:36:33 poppnk Exp $
#
# PROVIDE: acpid
# REQUIRE: DAEMON
. /etc/rc.subr
name="acpid"
rcvar=$name
command="@PREFIX@/sbin/${name}"
command_args="-c @PKG_SYSCONFDIR@/acpid/"
run_rc_command "$1"