blob: 674273254a0fd868a69eb1783ccc24bffdea977d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# $NetBSD: Makefile,v 1.1.1.1 2000/01/21 19:15:59 bouyer Exp $
#
DISTNAME= apcupsd-3.5.8.src
PKGNAME= apcupsd-3.5.8
CATEGORIES= sysutils
MASTER_SITES= ftp://sunsite.unc.edu/pub/linux/system/ups/
MAINTAINER= bouyer@netbsd.org
HOMEPAGE= http://www.brisse.dk/site/apcupsd/
USE_GMAKE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/apcupsd-netbsd ${PREFIX}/sbin/apcupsd
${INSTALL_PROGRAM} ${WRKSRC}/apcaccess-netbsd ${PREFIX}/bin/apcaccess
${SED} -e 's|@@PREFIX@@|${PREFIX}|' ${WRKSRC}/installs/powersc > \
${WRKDIR}/powersc
${INSTALL_SCRIPT} ${WRKDIR}/powersc ${PREFIX}/sbin/
${SED} -e 's|@@PREFIX@@|${PREFIX}|' ${WRKSRC}/installs/apcupsd.conf > \
${WRKDIR}/apcupsd.conf.sample
${INSTALL_DATA} ${WRKDIR}/apcupsd.conf.sample ${PREFIX}/etc/
@${MKDIR} ${PREFIX}/share/doc/apcupsd
${INSTALL_DATA} ${WRKSRC}/readmes/README* \
${WRKSRC}/readmes/minicom.apcupsd ${PREFIX}/share/doc/apcupsd/
${SED} -e 's|@@PREFIX@@|${PREFIX}|' ${WRKSRC}/docs/apcupsd.man8 > \
${WRKDIR}/apcupsd.8
${INSTALL_MAN} ${WRKDIR}/apcupsd.8 ${PREFIX}/man/man8/
.include "../../mk/bsd.pkg.mk"
|