blob: dde1d37d7034e3f74d4c8fd93e784ea30a4890b8 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# $NetBSD: Makefile,v 1.21 2002/04/05 11:46:03 wennmach Exp $
#
DISTNAME= arla-0.35.7
CATEGORIES= net security
MASTER_SITES= ftp://ftp.stacken.kth.se/pub/arla/
MAINTAINER= wennmach@netbsd.org
HOMEPAGE= http://www.stacken.kth.se/project/arla/
COMMENT= Free AFS implementation from KTH
.if exists(/usr/lib/libroken.a)
CONFIGURE_ARGS+= --with-krb4-lib=/usr
CONFIGURE_ARGS+= --with-krb4-include=/usr/include/kerberosIV
CONFIGURE_ARGS+= --with-roken=/usr
CONFIGURE_ARGS+= --with-roken-include=/usr/include/krb5
.else
.include "../../security/kth-krb4/buildlink.mk"
USE_BUILDLINK_ONLY= # defined
CONFIGURE_ARGS+= --with-krb4-lib=${BUILDLINK_DIR}
CONFIGURE_ARGS+= --with-krb4-include=${BUILDLINK_DIR}/include
CONFIGURE_ARGS+= --with-roken=${BUILDLINK_DIR}
CONFIGURE_ARGS+= --with-roken-include=${BUILDLINK_DIR}/include/kerberosIV
.endif
# for "amon":
.include "../../mk/x11.buildlink.mk"
CONFLICTS+= lwp-[0-9]*
CONFLICTS+= rx-[0-9]*
OSVERSION_SPECIFIC= yes
GNU_CONFIGURE= yes
INFO_FILES= arla.info
.include "../../mk/bsd.prefs.mk"
.if !exists(/sys/lib/libkern/libkern.h)
.if exists(${BSDSRCDIR}/sys/lib/libkern/libkern.h)
CONFIGURE_ARGS+= --with-sys=${BSDSRCDIR}/sys
.else
IGNORE= "${PKGNAME} requires kernel sources available under \$$BSDSRCDIR/sys (or /sys)"
.endif
.endif
.if defined(ARLA_CACHE)
CONFIGURE_ARGS+= --with-arlacachedir=${ARLA_CACHE}
.endif
.if defined(ARLA_CACHE)
CACHEDIR= ${ARLA_CACHE}
.else
CACHEDIR= ${LOCALBASE}/cache
.endif
MESSAGE_SUBST+= ARLA_CACHE=${CACHEDIR}
PLIST_SUBST+= ARLA_CACHE=${CACHEDIR}
do-configure:
# *Sometimes* it's bad to try to be too smart:
# pkgsrc's LDFLAGS choice is completely inadequate for arla, since
# arla's configure uses $LDFLAGS as flags for $LD, whereas
# pkgsrc's LDFLAGS are conceived to be used with $CC
# So, basically, bsd.pkg.mk sets LDFLAGS=-Wl,-R${LOCALBASE}
# while arla expects LDFLAGS=-R${LOCALBASE}
@(LDFLAGS= ; cd ${WRKSRC}; ./configure ${CONFIGURE_ARGS})
post-install:
@${ECHO} " "
@if [ -e ${CACHEDIR} ]; then \
${ECHO} "Arla cache dir (${CACHEDIR}) already exists"; \
else \
${ECHO} "Creating arla cache directory ${CACHEDIR}"; \
${INSTALL_DATA_DIR} ${CACHEDIR}; \
${CHMOD} 700 ${CACHEDIR}; \
${CHOWN} ${ROOT_USER} ${CACHEDIR}; \
fi
@if [ -e /sbin/mount_xfs ]; then \
${ECHO} "/sbin/mount_xfs already exists"; \
else \
${ECHO} "Creating /sbin/mount_xfs"; \
${LN} -s ${PREFIX}/sbin/mount_xfs /sbin/mount_xfs; \
fi
@-${INSTALL_DATA_DIR} ${PREFIX}/share/examples/arla
@${SED} -e 's|@PREFIX@|${PREFIX}|g' \
< ${FILESDIR}/lkm.conf \
> ${PREFIX}/share/examples/arla/lkm.conf
@${INSTALL_DATA} \
${FILESDIR}/services ${PREFIX}/share/examples/arla
@${INSTALL_DATA} \
${FILESDIR}/fstab ${PREFIX}/share/examples/arla
@${SED} -e 's|@PREFIX@|${PREFIX}|' ${FILESDIR}/arlad.sh \
> ${PREFIX}/etc/rc.d/arlad.sh
@${SED} -e 's|@PREFIX@|${PREFIX}|' ${FILESDIR}/arlad \
> ${PREFIX}/etc/rc.d/arlad
@${ECHO} " "
.include "../../mk/texinfo.mk"
.include "../../mk/bsd.pkg.mk"
|