|
Lines 6-50
Link Here
|
| 6 |
# |
6 |
# |
| 7 |
|
7 |
|
| 8 |
PORTNAME= amanda |
8 |
PORTNAME= amanda |
| 9 |
PORTVERSION= 2.3.0 |
9 |
PORTVERSION= 2.3.0.4 |
| 10 |
CATEGORIES= misc |
10 |
CATEGORIES= misc |
| 11 |
MASTER_SITES= ftp://ftp.cs.umd.edu/pub/amanda/old-versions/ |
11 |
MASTER_SITES= ftp://ftp.cs.umd.edu/pub/amanda/old-versions/ |
| 12 |
|
12 |
|
| 13 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
| 14 |
|
14 |
|
|
|
15 |
GNU_CONFIGURE=yes |
| 16 |
CONFIGURE_ARGS+=--with-dbdir=/var/log/amanda --with-logdir=/var/log/amanda \ |
| 17 |
--libexecdir=${PREFIX}/libexec/amanda --with-bsd-security \ |
| 18 |
--with-mmap |
| 19 |
|
| 15 |
MAN8= amadmin.8 amanda.8 amcheck.8 amcleanup.8 amdump.8 amflush.8 \ |
20 |
MAN8= amadmin.8 amanda.8 amcheck.8 amcleanup.8 amdump.8 amflush.8 \ |
| 16 |
amlabel.8 amrestore.8 amtape.8 |
21 |
amlabel.8 amplot.8 amrecover.8 amrestore.8 amrmtape.8 amtape.8 \ |
|
|
22 |
amtoc.8 |
| 23 |
|
| 24 |
LIBEXEC_BIN= amandad amcat.awk amgetidx amidxtaped amindexd amplot.awk \ |
| 25 |
amplot.g amplot.gp amtrmidx calcsize chg-generic \ |
| 26 |
createindex-dump createindex-gnutar driver dumper getconf \ |
| 27 |
hp-changer no-changer patch-system planner reporter \ |
| 28 |
rth-changer rundump runtar selfcheck sendbackup-dump \ |
| 29 |
sendbackup-gnutar sendindex sendsize taper versionsuffix |
| 30 |
|
| 31 |
BIN_BIN= amadmin amcheck amcheckdb amcleanup amdump amflush amlabel \ |
| 32 |
amoverview amplot amrecover amrestore amrmtape amtape amtoc \ |
| 33 |
amverify |
| 17 |
|
34 |
|
| 18 |
LIBEXEC_BIN= amandad calcsize driver dumper getconf planner reporter \ |
35 |
INSTALL_DATA= amanda.conf chg-generic.conf disklist |
| 19 |
runtar selfcheck sendbackup-dump sendbackup-gnutar sendsize \ |
|
|
| 20 |
taper |
| 21 |
SBIN_BIN= amadmin amcheck amflush amlabel amrestore amtape |
| 22 |
|
| 23 |
post-patch: |
| 24 |
@${LN} -sf config.h-freebsd2 ${WRKSRC}/config/config.h |
| 25 |
@${SED} -e 's:%%CC%%:${CC}:g' \ |
| 26 |
-e 's:%%CFLAGS%%:${CFLAGS}:g' \ |
| 27 |
-e 's:%%INSTALL%%:${INSTALL}:g' \ |
| 28 |
-e 's:%%PREFIX%%:${PREFIX}:g' \ |
| 29 |
${WRKSRC}/config/options.h-vanilla > ${WRKSRC}/config/options.h |
| 30 |
.for file in amanda.8 amcleanup.8 amflush.8 amlabel.8 |
| 31 |
@cd ${WRKSRC}/man/; ${MV} ${file} ${file}.in; \ |
| 32 |
${SED} -e 's:%%PREFIX%%:${PREFIX}:g' ${file}.in > ${file} |
| 33 |
.endfor |
| 34 |
|
36 |
|
| 35 |
post-install: |
37 |
post-install: |
| 36 |
.for file in ${LIBEXEC_BIN} |
|
|
| 37 |
@if [ -f ${PREFIX}/libexec/amanda/${file} ]; then \ |
| 38 |
strip ${PREFIX}/libexec/amanda/${file}; \ |
| 39 |
fi |
| 40 |
.endfor |
| 41 |
.for file in ${SBIN_BIN} |
| 42 |
@if [ -f ${PREFIX}/sbin/${file} ]; then \ |
| 43 |
strip ${PREFIX}/sbin/${file}; \ |
| 44 |
fi |
| 45 |
.endfor |
| 46 |
@${MKDIR} ${PREFIX}/share/examples/amanda |
38 |
@${MKDIR} ${PREFIX}/share/examples/amanda |
| 47 |
${INSTALL_DATA} ${WRKSRC}/example/* ${PREFIX}/share/examples/amanda |
39 |
${INSTALL_DATA} ${WRKSRC}/example/amanda.conf ${PREFIX}/share/examples/amanda |
|
|
40 |
${INSTALL_DATA} ${WRKSRC}/example/chg-generic.conf ${PREFIX}/share/examples/amanda |
| 41 |
${INSTALL_DATA} ${WRKSRC}/example/disklist ${PREFIX}/share/examples/amanda |
| 48 |
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
42 |
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
| 49 |
|
43 |
|
| 50 |
.include <bsd.port.mk> |
44 |
.include <bsd.port.mk> |