| @@ -1,17 +1,17 @@ | | | @@ -1,17 +1,17 @@ |
1 | # $NetBSD: Makefile,v 1.86 2018/11/12 14:40:22 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.87 2019/10/12 21:06:48 rillig Exp $ |
2 | | | 2 | |
3 | DISTNAME= apcupsd-3.14.13r2365 | | 3 | DISTNAME= apcupsd-3.14.13r2365 |
4 | PKGREVISION= 3 | | 4 | PKGREVISION= 4 |
5 | CATEGORIES= sysutils | | 5 | CATEGORIES= sysutils |
6 | #MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=apcupsd/} | | 6 | #MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=apcupsd/} |
7 | MASTER_SITES= ${MASTER_SITE_LOCAL} | | 7 | MASTER_SITES= ${MASTER_SITE_LOCAL} |
8 | | | 8 | |
9 | MAINTAINER= bouyer@NetBSD.org | | 9 | MAINTAINER= bouyer@NetBSD.org |
10 | HOMEPAGE= http://www.apcupsd.org/ | | 10 | HOMEPAGE= http://www.apcupsd.org/ |
11 | COMMENT= UPS power management for APCC Products | | 11 | COMMENT= UPS power management for APCC Products |
12 | LICENSE= gnu-gpl-v2 | | 12 | LICENSE= gnu-gpl-v2 |
13 | | | 13 | |
14 | USE_TOOLS+= gmake msgfmt sh makedepend | | 14 | USE_TOOLS+= gmake msgfmt sh makedepend |
15 | USE_LANGUAGES= c c++ | | 15 | USE_LANGUAGES= c c++ |
16 | | | 16 | |
17 | GNU_CONFIGURE= yes | | 17 | GNU_CONFIGURE= yes |
| @@ -72,27 +72,27 @@ CONF_FILES_PERMS+= ${EGDIR}/apccontrol $ | | | @@ -72,27 +72,27 @@ CONF_FILES_PERMS+= ${EGDIR}/apccontrol $ |
72 | RCD_SCRIPTS= apcupsd | | 72 | RCD_SCRIPTS= apcupsd |
73 | | | 73 | |
74 | OPSYSVARS+= PLATFORM_SUBDIR | | 74 | OPSYSVARS+= PLATFORM_SUBDIR |
75 | PLATFORM_SUBDIR.DragonFly= netbsd | | 75 | PLATFORM_SUBDIR.DragonFly= netbsd |
76 | PLATFORM_SUBDIR.SunOS= sun | | 76 | PLATFORM_SUBDIR.SunOS= sun |
77 | PLATFORM_SUBDIR.*= ${OPSYS:tl} | | 77 | PLATFORM_SUBDIR.*= ${OPSYS:tl} |
78 | | | 78 | |
79 | RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/platforms/${PLATFORM_SUBDIR}/apcupsd | | 79 | RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/platforms/${PLATFORM_SUBDIR}/apcupsd |
80 | | | 80 | |
81 | EGFILES= ${PLATFORM_SUBDIR}/apccontrol etc/changeme etc/commfailure etc/commok \ | | 81 | EGFILES= ${PLATFORM_SUBDIR}/apccontrol etc/changeme etc/commfailure etc/commok \ |
82 | etc/offbattery etc/onbattery etc/multimon.conf etc/hosts.conf | | 82 | etc/offbattery etc/onbattery etc/multimon.conf etc/hosts.conf |
83 | | | 83 | |
84 | INSTALLATION_DIRS= share/examples/apcupsd share/examples/rc.d \ | | 84 | INSTALLATION_DIRS= share/examples/apcupsd share/examples/rc.d \ |
85 | share/doc/html/apcupsd share/doc/html/apcupsd/manual | | 85 | share/doc/apcupsd share/doc/apcupsd/manual |
86 | | | 86 | |
87 | SUBST_CLASSES+= strip | | 87 | SUBST_CLASSES+= strip |
88 | SUBST_STAGE.strip= pre-configure | | 88 | SUBST_STAGE.strip= pre-configure |
89 | SUBST_FILES.strip= autoconf/install-sh autoconf/targets.mak | | 89 | SUBST_FILES.strip= autoconf/install-sh autoconf/targets.mak |
90 | SUBST_FILES.strip+= src/gapcmon/Makefile.in src/cgi/Makefile.in | | 90 | SUBST_FILES.strip+= src/gapcmon/Makefile.in src/cgi/Makefile.in |
91 | SUBST_FILES.strip+= src/Makefile.in | | 91 | SUBST_FILES.strip+= src/Makefile.in |
92 | SUBST_SED.strip= -e "s|STRIP|STRIPFLAG|g" | | 92 | SUBST_SED.strip= -e "s|STRIP|STRIPFLAG|g" |
93 | SUBST_MESSAGE.strip= Fixing conflicting STRIP variable name | | 93 | SUBST_MESSAGE.strip= Fixing conflicting STRIP variable name |
94 | | | 94 | |
95 | # XXX we should probably allow the tty to be set in /etc/mk.conf too | | 95 | # XXX we should probably allow the tty to be set in /etc/mk.conf too |
96 | # | | 96 | # |
97 | | | 97 | |
98 | HTMLDOCS= manual.html apcupsd.png charging.png commlost.png \ | | 98 | HTMLDOCS= manual.html apcupsd.png charging.png commlost.png \ |
| @@ -100,19 +100,19 @@ HTMLDOCS= manual.html apcupsd.png chargi | | | @@ -100,19 +100,19 @@ HTMLDOCS= manual.html apcupsd.png chargi |
100 | thanks.png wininstall6.png | | 100 | thanks.png wininstall6.png |
101 | | | 101 | |
102 | post-install: | | 102 | post-install: |
103 | ${INSTALL_DATA} ${WRKSRC}/platforms/etc/apcupsd.conf \ | | 103 | ${INSTALL_DATA} ${WRKSRC}/platforms/etc/apcupsd.conf \ |
104 | ${DESTDIR}${PREFIX}/share/examples/apcupsd | | 104 | ${DESTDIR}${PREFIX}/share/examples/apcupsd |
105 | ${INSTALL_DATA} ${WRKSRC}/src/cgi/apcupsd.css \ | | 105 | ${INSTALL_DATA} ${WRKSRC}/src/cgi/apcupsd.css \ |
106 | ${DESTDIR}${PREFIX}/share/examples/apcupsd | | 106 | ${DESTDIR}${PREFIX}/share/examples/apcupsd |
107 | .for file in ${EGFILES} | | 107 | .for file in ${EGFILES} |
108 | ${INSTALL_SCRIPT} ${WRKSRC}/platforms/${file} \ | | 108 | ${INSTALL_SCRIPT} ${WRKSRC}/platforms/${file} \ |
109 | ${DESTDIR}${PREFIX}/share/examples/apcupsd | | 109 | ${DESTDIR}${PREFIX}/share/examples/apcupsd |
110 | .endfor | | 110 | .endfor |
111 | .for file in ${HTMLDOCS} | | 111 | .for file in ${HTMLDOCS} |
112 | ${INSTALL_DATA} ${WRKSRC}/doc/manual/${file} \ | | 112 | ${INSTALL_DATA} ${WRKSRC}/doc/manual/${file} \ |
113 | ${DESTDIR}${PREFIX}/share/doc/html/apcupsd | | 113 | ${DESTDIR}${PREFIX}/share/doc/apcupsd |
114 | .endfor | | 114 | .endfor |
115 | | | 115 | |
116 | .include "../../devel/gettext-lib/buildlink3.mk" | | 116 | .include "../../devel/gettext-lib/buildlink3.mk" |
117 | .include "../../devel/libusb/buildlink3.mk" | | 117 | .include "../../devel/libusb/buildlink3.mk" |
118 | .include "../../mk/bsd.pkg.mk" | | 118 | .include "../../mk/bsd.pkg.mk" |