blob: 4618a4042b1de0c977803a644c7fd06fc8ea4de5 (
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
52
53
54
55
56
57
58
59
60
61
62
|
# $NetBSD: Makefile,v 1.20 2012/01/18 14:33:17 adam Exp $
DISTNAME= drac
PKGNAME= drac-1.12
PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.cc.umanitoba.ca/src/
EXTRACT_SUFX= .tar.Z
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mail.cc.umanitoba.ca/drac/
COMMENT= Dynamic Relay Authorization Control
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
DIST_SUBDIR= ${PKGNAME_NOREV}
MAKE_FLAGS+= RANLIB=${RANLIB:Q}
MAKE_FLAGS+= EBIN=${PREFIX}/libexec
MAKE_FLAGS+= MAN=${PREFIX}/${PKGMANDIR}/man
MAKE_FLAGS+= MANADM=8
MAKE_FLAGS+= BDB_LIBS=${BDB_LIBS:Q}
INSTALLATION_DIRS= include lib libexec ${PKGMANDIR}/man3 ${PKGMANDIR}/man8
INSTALLATION_DIRS+= share/examples/drac
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "Linux"
RPCGENFLAGS= -I -C
.elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD"
RPCGENFLAGS= -C
.elif ${OPSYS} == "SunOS" || ${OPSYS} == "BSDOS" || ${OPSYS} == "AIX"
RPCGENFLAGS= # empty
.else
RPCGENFLAGS= # empty
.endif
MAKE_FLAGS+= RPCGENFLAGS=${RPCGENFLAGS:Q}
CFLAGS.SunOS= -DTI_RPC -DFCNTL_LOCK -DSYSINFO
CFLAGS.BSDOS= -DSOCK_RPC -DFCNTL_LOCK -DGETHOST
CFLAGS.IRIX= -DSOCK_RPC -DFCNTL_LOCK -DGETHOST
CFLAGS.NetBSD= -DSOCK_RPC -DFCNTL_LOCK -DGETHOST -DDASH_C
CFLAGS.FreeBSD= -DSOCK_RPC -DFLOCK_LOCK -DGETHOST -DDASH_C
CFLAGS.OpenBSD= -DSOCK_RPC -DFLOCK_LOCK -DGETHOST -DDASH_C
CFLAGS.Dragonfly= -DSOCK_RPC -DFLOCK_LOCK -DGETHOST -DDASH_C
CFLAGS.Linux= -DSOCK_RPC -DFCNTL_LOCK -DGETHOST -DDASH_C
CFLAGS.AIX= -DD_BSD -DBSD_INCLUDES -DSOCK_RPC -DFCNTL_LOCK -DGETHOST -DDEBUG
LIBS.SunOS= -lnsl
INSTALL_TARGET= install install-man
post-install:
.for e in README INSTALL testing.c dracd-setup dracd.allow-sample
${INSTALL_DATA} ${WRKSRC}/${e} ${DESTDIR}${PREFIX}/share/examples/drac
.endfor
${INSTALL_DATA} ${WRKSRC}/drac.h ${DESTDIR}${PREFIX}/include
${INSTALL_LIB} ${WRKSRC}/libdrac.a ${DESTDIR}${PREFIX}/lib
.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|