2002-12-29 14:49:40 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2002/12/29 19:49:40 fgsch Exp $
|
2001-05-05 22:29:37 -04:00
|
|
|
|
2001-05-12 12:41:08 -04:00
|
|
|
COMMENT= "network-capable tape backup (client and tape server)"
|
|
|
|
COMMENT-client= "network-capable tape backup (client only)"
|
|
|
|
|
|
|
|
DISTVERSION= 2.4.2p2
|
|
|
|
|
|
|
|
# 2.4.2p2 is problematical as a package name, because we have been
|
|
|
|
# marking OpenBSD package revisions with a "pX" suffix.
|
|
|
|
PKGVERSION= ${DISTVERSION:S/p/./}
|
|
|
|
|
|
|
|
DISTNAME= amanda-${DISTVERSION}
|
|
|
|
|
|
|
|
PKGNAME= amanda-${PKGVERSION}
|
|
|
|
PKGNAME-client= amanda-client-${PKGVERSION}
|
1997-12-09 01:23:36 -05:00
|
|
|
|
|
|
|
CATEGORIES= misc
|
1999-02-20 23:26:09 -05:00
|
|
|
|
2001-05-12 12:41:08 -04:00
|
|
|
HOMEPAGE= http://www.amanda.org/
|
2000-03-24 17:11:32 -05:00
|
|
|
|
2001-05-12 12:41:08 -04:00
|
|
|
MAINTAINER= Tom Schutter <t.schutter@att.net>
|
1999-01-26 19:22:28 -05:00
|
|
|
|
2001-05-12 12:41:08 -04:00
|
|
|
# BSD
|
2000-03-24 17:11:32 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-12 01:29:49 -05:00
|
|
|
|
2001-05-12 12:41:08 -04:00
|
|
|
MASTER_SITES= ftp://ftp.amanda.org/pub/amanda/ \
|
2002-05-13 19:31:24 -04:00
|
|
|
${MASTER_SITE_SOURCEFORGE:=amanda/}
|
2001-05-12 12:41:08 -04:00
|
|
|
|
|
|
|
# Amanda configure looks for gtar and smbclient so that it can hard-code
|
|
|
|
# the pathnames.
|
|
|
|
# Configure looks for gnuplot to see if it should build amplot.
|
2002-06-09 01:31:40 -04:00
|
|
|
BUILD_DEPENDS+= :gtar-*:archivers/gtar \
|
|
|
|
:samba-*:net/samba/stable \
|
|
|
|
:gnuplot-*:math/gnuplot
|
2001-05-12 12:41:08 -04:00
|
|
|
|
|
|
|
# There is no need to set RUN_DEPENDS, because Amanda will run fine
|
|
|
|
# without gtar, smbclient, and gnuplot. They will only be required
|
|
|
|
# if the user creates a configuration that needs them, and then
|
|
|
|
# Amanda will gracefully tell them what is required.
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -client
|
|
|
|
|
|
|
|
# 2.4.2 exposed a bug in BSD make.
|
|
|
|
# Please see http://www.egroups.com/message/amanda-hackers/2333 (and
|
|
|
|
# following thread).
|
|
|
|
#
|
|
|
|
# (Summary: yes; appears to be a problem with FreeBSD make; see
|
|
|
|
# http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23328 for that part. A
|
|
|
|
# circumvention is to hack the Makefiles; another is to use gmake.)
|
|
|
|
USE_GMAKE= Yes
|
1997-12-09 01:23:36 -05:00
|
|
|
|
2000-10-22 11:41:23 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
2001-09-28 02:02:12 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/config
|
1998-01-16 06:29:25 -05:00
|
|
|
|
2001-05-12 12:41:08 -04:00
|
|
|
# Because Amanda does not conform to shared library naming standards,
|
|
|
|
# and knowing that no software outside of Amanda attempts to use the
|
|
|
|
# shared libraries, we disable the generation of shared libraries.
|
|
|
|
# Use mmap instead of shm to work around broken uvm post 2.7.
|
|
|
|
CONFIGURE_ARGS= --disable-shared \
|
|
|
|
--libexecdir=${PREFIX}/libexec/amanda \
|
1999-01-26 19:22:28 -05:00
|
|
|
--localstatedir=/var \
|
2001-05-12 12:41:08 -04:00
|
|
|
--with-configdir=${SYSCONFDIR}/amanda \
|
2001-03-16 00:55:38 -05:00
|
|
|
--with-mmap \
|
2001-05-12 12:41:08 -04:00
|
|
|
--with-user=operator \
|
1999-01-26 19:22:28 -05:00
|
|
|
--with-group=operator
|
1997-12-09 01:23:36 -05:00
|
|
|
|
2001-05-12 12:41:08 -04:00
|
|
|
OLD_DOC_DIR= ${PREFIX}/share/amanda
|
|
|
|
DOC_DIR= ${PREFIX}/share/doc/amanda
|
1999-01-26 19:22:28 -05:00
|
|
|
EXAMPLE_DIR= ${PREFIX}/share/examples/amanda
|
1997-12-09 01:23:36 -05:00
|
|
|
|
|
|
|
post-install:
|
2000-03-24 17:11:32 -05:00
|
|
|
@cd ${WRKSRC}; \
|
2001-05-12 12:41:08 -04:00
|
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}; \
|
|
|
|
${INSTALL_DATA} AUTHORS ${DOC_DIR}; \
|
|
|
|
${INSTALL_DATA} NEWS ${DOC_DIR}; \
|
|
|
|
${INSTALL_DATA} README ${DOC_DIR}; \
|
|
|
|
mv ${OLD_DOC_DIR}/* ${DOC_DIR}; \
|
|
|
|
rmdir ${OLD_DOC_DIR}; \
|
1999-01-26 19:22:28 -05:00
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLE_DIR}; \
|
|
|
|
${INSTALL_DATA} example/*.ps ${EXAMPLE_DIR}; \
|
2001-05-12 12:41:08 -04:00
|
|
|
${INSTALL_DATA} example/disklist ${EXAMPLE_DIR}; \
|
|
|
|
cd example; \
|
|
|
|
for f in *.conf *.conf.chg-scsi; do \
|
|
|
|
sed -e 's,usr/adm,var,' \
|
|
|
|
-e 's,/usr/local/etc,${SYSCONFDIR},' $$f \
|
|
|
|
> ${EXAMPLE_DIR}/$$f; \
|
|
|
|
done
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/crontab.sample ${EXAMPLE_DIR}
|
1997-12-09 01:23:36 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|