1995-02-28 19:23:26 -05:00
|
|
|
# New ports collection makefile for: amanda
|
|
|
|
# Date created: 28th Feb 1995
|
|
|
|
# Whom: gpalmer
|
|
|
|
#
|
1999-08-25 03:23:21 -04:00
|
|
|
# $FreeBSD$
|
1995-02-28 19:23:26 -05:00
|
|
|
#
|
|
|
|
|
2000-04-14 04:49:30 -04:00
|
|
|
PORTNAME= amanda
|
|
|
|
PORTVERSION= 2.3.0
|
1996-11-11 00:50:23 -05:00
|
|
|
CATEGORIES= misc
|
1999-04-16 14:50:06 -04:00
|
|
|
MASTER_SITES= ftp://ftp.cs.umd.edu/pub/amanda/old-versions/
|
1995-04-14 23:46:07 -04:00
|
|
|
|
1999-11-10 00:46:20 -05:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1995-04-14 23:46:07 -04:00
|
|
|
|
1999-12-23 11:18:36 -05:00
|
|
|
MAN8= amadmin.8 amanda.8 amcheck.8 amcleanup.8 amdump.8 amflush.8 \
|
|
|
|
amlabel.8 amrestore.8 amtape.8
|
1995-02-28 19:23:26 -05:00
|
|
|
|
1999-12-23 11:18:36 -05:00
|
|
|
LIBEXEC_BIN= amandad calcsize driver dumper getconf planner reporter \
|
|
|
|
runtar selfcheck sendbackup-dump sendbackup-gnutar sendsize \
|
|
|
|
taper
|
|
|
|
SBIN_BIN= amadmin amcheck amflush amlabel amrestore amtape
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${LN} -sf config.h-freebsd2 ${WRKSRC}/config/config.h
|
|
|
|
@${SED} -e 's:%%CC%%:${CC}:g' \
|
|
|
|
-e 's:%%CFLAGS%%:${CFLAGS}:g' \
|
|
|
|
-e 's:%%INSTALL%%:${INSTALL}:g' \
|
|
|
|
-e 's:%%PREFIX%%:${PREFIX}:g' \
|
|
|
|
${WRKSRC}/config/options.h-vanilla > ${WRKSRC}/config/options.h
|
|
|
|
.for file in amanda.8 amcleanup.8 amflush.8 amlabel.8
|
|
|
|
@cd ${WRKSRC}/man/; ${MV} ${file} ${file}.in; \
|
|
|
|
${SED} -e 's:%%PREFIX%%:${PREFIX}:g' ${file}.in > ${file}
|
|
|
|
.endfor
|
1997-03-08 00:00:11 -05:00
|
|
|
|
|
|
|
post-install:
|
1999-12-23 11:18:36 -05:00
|
|
|
.for file in ${LIBEXEC_BIN}
|
|
|
|
@if [ -f ${PREFIX}/libexec/amanda/${file} ]; then \
|
|
|
|
strip ${PREFIX}/libexec/amanda/${file}; \
|
|
|
|
fi
|
|
|
|
.endfor
|
|
|
|
.for file in ${SBIN_BIN}
|
|
|
|
@if [ -f ${PREFIX}/sbin/${file} ]; then \
|
|
|
|
strip ${PREFIX}/sbin/${file}; \
|
|
|
|
fi
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${PREFIX}/share/examples/amanda
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/example/* ${PREFIX}/share/examples/amanda
|
1999-12-29 02:13:33 -05:00
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
1997-03-08 00:00:11 -05:00
|
|
|
|
1995-02-28 19:23:26 -05:00
|
|
|
.include <bsd.port.mk>
|