blob: d704bb7124a1a18c95c976803f00e8ae983ef01a (
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
42
43
44
45
46
47
48
49
50
51
|
# $NetBSD: Makefile,v 1.18 2015/03/21 17:31:47 joerg Exp $
#
DISTNAME= dhisd-5.5
CATEGORIES= net
MASTER_SITES= ftp://ftp.dhis.org/pub/dhis/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.dhis.org/
COMMENT= DynDNS server
LICENSE= 2-clause-bsd
LDFLAGS.SunOS+= -lsocket -lnsl
INSTALLATION_DIRS= bin share/examples/dhisd share/doc/dhisd
SUBST_CLASSES+= prefix
SUBST_FILES.prefix= Makefile
SUBST_STAGE.prefix= pre-configure
SUBST_MESSAGE.prefix= Convert /usr/local to ${PREFIX}
SUBST_SED.prefix= -e 's|/usr/local|${PREFIX}|;'
SUBST_SED.prefix+= -e '/LFLAGS/s|${PREFIX}|${PREFIX}/lib -Wl,-rpath,${PREFIX}|;'
SUBST_CLASSES+= varbase
SUBST_FILES.varbase= dhisd.h README
SUBST_STAGE.varbase= pre-configure
SUBST_MESSAGE.varbase= Adapt VARBASE and PREFIX
SUBST_VARS.varbase+= VARBASE PREFIX
SPECIAL_PERMS+= bin/dhisd-genkeys ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700 \
bin/dhisd ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
do-install:
${INSTALL_DATA} \
${WRKSRC}/*.sample \
${DESTDIR}${PREFIX}/share/examples/dhisd
${INSTALL_DATA} \
${WRKSRC}/CONTRIBUTORS \
${WRKSRC}/COPYRIGHT \
${WRKSRC}/INSTALL \
${WRKSRC}/README \
${DESTDIR}${PREFIX}/share/doc/dhisd
${INSTALL_PROGRAM} \
${WRKSRC}/dhisd \
${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} \
${WRKSRC}/dhisgenkeys \
${DESTDIR}${PREFIX}/bin/dhisd-genkeys
.include "../../devel/gmp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|