summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-05-07 17:04:05 +0000
committeragc <agc@pkgsrc.org>1998-05-07 17:04:05 +0000
commit388871c336c9e3247c41f4471142cfc07878d087 (patch)
treed3b9881b42acc8e325b4b91a7bb9a10edf6ab3b0 /misc
parentb074357a8f222d34f3731b3e11f5b992d5ce7fa5 (diff)
downloadpkgsrc-388871c336c9e3247c41f4471142cfc07878d087.tar.gz
The best way to fix PR 4895 is to upgrade Amanda to version 2.4.0, and close
some security holes in the process.
Diffstat (limited to 'misc')
-rw-r--r--misc/amanda/Makefile41
-rw-r--r--misc/amanda/files/md52
2 files changed, 25 insertions, 18 deletions
diff --git a/misc/amanda/Makefile b/misc/amanda/Makefile
index 7e3445c2890..72fb62f02b6 100644
--- a/misc/amanda/Makefile
+++ b/misc/amanda/Makefile
@@ -1,27 +1,34 @@
-# $NetBSD: Makefile,v 1.7 1998/04/20 11:56:26 frueauf Exp $
+# $NetBSD: Makefile,v 1.8 1998/05/07 17:04:05 agc Exp $
# FreeBSD Id: Makefile,v 1.9 1997/03/08 05:00:11 gpalmer Exp
#
-DISTNAME= amanda-2.3.0
-CATEGORIES= misc
-MASTER_SITES= ftp://ftp.cs.umd.edu/pub/amanda/
+DISTNAME= amanda-2.4.0
+CATEGORIES= misc
+MASTER_SITES= ftp://ftp.cs.umd.edu/pub/amanda/
-MAINTAINER= packages@netbsd.org
+MAINTAINER= packages@netbsd.org
-PATCH_STRIP=
-SCRIPTS_ENV+= CFLAGS="${CFLAGS}"
-MAN8= amanda.8 amadmin.8 amcheck.8 amcleanup.8 amdump.8 \
- amflush.8 amlabel.8 amrestore.8 amtape.8
+USE_PERL5= yes
+DEPENDS+= readline-2.2:../../devel/readline
+RUN_DEPENDS+= gnuplot:../../graphics/gnuplot
+RUN_DEPENDS+= gtar:../../archivers/gtar
-pre-configure:
- find ${WRKDIR} -type f -print|xargs ${GREP} -l '/usr/local' > ${WRKDIR}/prefix-list
- for f in `cat ${WRKDIR}/prefix-list`; do \
- ${SED} -e 's:/usr/local:'${PREFIX}':g' < $$f > $$f.pdone && ${MV} $$f.pdone $$f; \
- done
- ${RM} ${WRKDIR}/prefix-list
+AMANDA_USER?= backup
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-user=${AMANDA_USER} --with-group=${AMANDA_USER}
+MAKE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
+CONFIGURE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
+
+MAN8+= amadmin.8 amcheck.8 amdump.8 amflush.8 amlabel.8
+MAN8+= amrestore.8 amtape.8 amanda.8 amcleanup.8 amtoc.8
+MAN8+= amcheckdb.8 amoverview.8 amplot.8 amrecover.8
+MAN8+= amrmtape.8 amverify.8
+
+pre-install:
+ @${SETENV} ${MAKE_ENV} perl ${SCRIPTDIR}/createuser ${AMANDA_USER}
post-install:
- ${MKDIR} ${PREFIX}/share/examples/amanda
- ${CP} -R ${WRKSRC}/example/* ${PREFIX}/share/examples/amanda
+ ${LDCONFIG} || ${TRUE}
.include "../../mk/bsd.pkg.mk"
diff --git a/misc/amanda/files/md5 b/misc/amanda/files/md5
index 5f4ae2326bf..0c8c35d4742 100644
--- a/misc/amanda/files/md5
+++ b/misc/amanda/files/md5
@@ -1 +1 @@
-MD5 (amanda-2.3.0.tar.gz) = fabe173c0b507633d8b7eb081acd8174
+MD5 (amanda-2.4.0.tar.gz) = b0c29c9b1b1fd0c8fcddfdecb2b8b2a8