blob: f22598e9c92b1e3e4753037c190b5cc9524c0905 (
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
|
# $NetBSD: Makefile,v 1.14 2013/07/06 01:24:14 rodent Exp $
DISTNAME= prngd-0.9.29
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=prngd/}
MAINTAINER= rodent@NetBSD.org
HOMEPAGE= http://prngd.sourceforge.net/
COMMENT= Pseudo Random Number Generator Daemon
MAKE_ENV+= DEFS='-DRANDSAVENAME="\"${VARBASE}/db/prngd-seed\"" -DCONFIGFILE="\"${PKG_SYSCONFDIR}/prngd.conf\""'
EGDIR= ${PREFIX}/share/examples/prngd
CONF_FILES= ${EGDIR}/prngd.conf.netbsd ${PKG_SYSCONFDIR}/prngd.conf
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/prngd share/examples/prngd
SUBST_CLASSES+= path
SUBST_STAGE.path= pre-install
SUBST_MESSAGE.path= Fixing paths in man page.
SUBST_FILES.path= prngd.man
SUBST_SED.path= -e 's,/usr/local,${PREFIX},g'
SUBST_SED.path+= -e 's,/var,${VARBASE},g'
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/prngd ${DESTDIR}${PREFIX}/bin/prngd
${INSTALL_DATA} ${WRKSRC}/00README ${DESTDIR}${PREFIX}/share/doc/prngd
${INSTALL_DATA} ${WRKSRC}/00README.gatherers ${DESTDIR}${PREFIX}/share/doc/prngd
${INSTALL_DATA} ${WRKSRC}/00DESIGN ${DESTDIR}${PREFIX}/share/doc/prngd
${INSTALL_DATA} ${WRKSRC}/contrib/NetBSD1/prngd.conf.netbsd ${DESTDIR}${PREFIX}/share/examples/prngd
${INSTALL_MAN} ${WRKSRC}/prngd.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/prngd.1
.include "../../mk/bsd.pkg.mk"
|