7d3f399204
Most important changes: o added user-land programs: kalog, aklog, arla-cli o improved user-land programs: vos, bos, pts, etc. o added man pages o security fix (in rx) o and tons of bug fixes I included a start script to be placed under /etc/rc.d.
82 lines
2.9 KiB
Makefile
82 lines
2.9 KiB
Makefile
# $NetBSD: Makefile,v 1.17 2001/08/09 13:48:58 wennmach Exp $
|
|
#
|
|
|
|
DISTNAME= arla-0.35.5
|
|
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
|
|
|
|
DEPENDS+= kth-krb4>=1.0.9:../../security/kth-krb4
|
|
|
|
CONFLICTS+= lwp-* rx-*
|
|
|
|
OSVERSION_SPECIFIC= yes
|
|
GNU_CONFIGURE= yes
|
|
INFO_FILES= arla.info
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-krb4=${PREFIX}
|
|
.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 ${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/bsd.pkg.mk"
|