blob: 7ba21bea42616644c0eb0abd0a165dd61d16ef0b (
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
30
31
32
33
34
35
36
37
38
39
40
41
|
# $NetBSD: Makefile,v 1.4 2014/09/29 08:29:46 jperkin Exp $
#
PKGNAME= pluged-0.1
DISTNAME= pluged
CATEGORIES= sysutils
MASTER_SITES= http://plug.gnux.info/
EXTRACT_SUFX= .tbz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://plug.gnux.info/
COMMENT= USB plug/unplug monitoring daemon
#LICENSE= # TODO: (see mk/license.mk)
USE_TOOLS+= lex
BUILDLINK_TRANSFORM= rm:-Werror
EGDIR= ${PREFIX}/share/examples/pluged
RCDDIR= ${PREFIX}/share/examples/rc.d
CONF_FILES+= ${EGDIR}/pluged.conf ${PREFIX}/etc/pluged.conf
.include "../../mk/bsd.prefs.mk"
PLIST_VARS+= rcd
.if ${INIT_SYSTEM} == "rc.d"
PLIST.rcd= yes
.endif
do-install:
${INSTALL_PROGRAM_DIR} ${DESTDIR}/${PREFIX}/sbin
${INSTALL_DATA_DIR} ${DESTDIR}/${EGDIR}
${INSTALL_PROGRAM} ${WRKSRC}/pluged ${DESTDIR}/${PREFIX}/sbin/pluged
${INSTALL_DATA} ${WRKSRC}/pluged.conf ${DESTDIR}/${EGDIR}/pluged.conf
.if ${INIT_SYSTEM} == "rc.d"
${INSTALL_DATA_DIR} ${DESTDIR}/${RCDDIR}
${INSTALL_DATA} ${WRKSRC}/rc.d/pluged ${DESTDIR}/${RCDDIR}/pluged
.endif
.include "../../mk/bsd.pkg.mk"
|