2009-07-19 14:58:54 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.35 2009/07/19 18:58:54 naddy Exp $
|
2001-05-05 22:29:37 -04:00
|
|
|
|
2007-09-15 19:54:16 -04:00
|
|
|
COMMENT-main= network-capable tape backup (client and tape server)
|
|
|
|
COMMENT-client= network-capable tape backup (client only)
|
|
|
|
COMMENT-doc= network-capable tape backup (documentation)
|
2001-05-12 12:41:08 -04:00
|
|
|
|
2005-11-25 04:08:01 -05:00
|
|
|
DISTVERSION= 2.4.5p1
|
2001-05-12 12:41:08 -04:00
|
|
|
|
2005-11-25 04:08:01 -05:00
|
|
|
# PKGVERSION= ${DISTVERSION}p1
|
2005-05-31 05:09:30 -04:00
|
|
|
# Minor patched releases are usually named with a "pX" suffix.
|
|
|
|
# These names can not be used with the OpenBSD ports framework.
|
2005-11-25 04:08:01 -05:00
|
|
|
PKGVERSION= ${DISTVERSION:S/p/./}
|
2001-05-12 12:41:08 -04:00
|
|
|
|
|
|
|
DISTNAME= amanda-${DISTVERSION}
|
|
|
|
|
2009-07-19 14:58:54 -04:00
|
|
|
PKGNAME-main= amanda-${PKGVERSION}p1
|
|
|
|
PKGNAME-client= amanda-client-${PKGVERSION}p0
|
2005-05-31 05:09:30 -04:00
|
|
|
PKGNAME-doc= amanda-doc-${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
|
|
|
|
2005-05-04 13:08:24 -04:00
|
|
|
MAINTAINER= Olivier Cherrier <oc@symacx.com>
|
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
|
|
|
|
2005-05-04 13:08:24 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=amanda/}
|
2001-05-12 12:41:08 -04:00
|
|
|
|
2005-05-31 05:09:30 -04:00
|
|
|
# AMANDA configure looks for gtar and smbclient so that it can hard-code
|
2001-05-12 12:41:08 -04:00
|
|
|
# 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 \
|
2005-04-05 20:19:10 -04:00
|
|
|
:samba-*:net/samba \
|
2002-06-09 01:31:40 -04:00
|
|
|
:gnuplot-*:math/gnuplot
|
2001-05-12 12:41:08 -04:00
|
|
|
|
2005-05-31 05:09:30 -04:00
|
|
|
# There is no need to set RUN_DEPENDS, because AMANDA will run fine
|
2001-05-12 12:41:08 -04:00
|
|
|
# without gtar, smbclient, and gnuplot. They will only be required
|
|
|
|
# if the user creates a configuration that needs them, and then
|
2005-05-31 05:09:30 -04:00
|
|
|
# AMANDA will gracefully tell them what is required.
|
2001-05-12 12:41:08 -04:00
|
|
|
|
2006-11-21 17:19:01 -05:00
|
|
|
WANTLIB= c m readline termcap
|
|
|
|
PKG_ARCH-doc= *
|
|
|
|
WANTLIB-doc=
|
2009-07-19 14:58:54 -04:00
|
|
|
LIB_DEPENDS-doc=
|
2006-11-21 17:19:01 -05:00
|
|
|
|
|
|
|
MULTI_PACKAGES= -main -client -doc
|
2001-05-12 12:41:08 -04:00
|
|
|
|
2005-05-31 05:09:30 -04:00
|
|
|
FLAVORS= db gpg
|
|
|
|
FLAVOR?=
|
|
|
|
|
2005-05-04 13:08:24 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2004-08-02 12:08:23 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/config
|
1998-01-16 06:29:25 -05:00
|
|
|
|
2005-05-31 05:09:30 -04:00
|
|
|
# Because AMANDA does not conform to shared library naming standards,
|
|
|
|
# and knowing that no software outside of AMANDA attempts to use the
|
2001-05-12 12:41:08 -04:00
|
|
|
# shared libraries, we disable the generation of shared libraries.
|
|
|
|
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 \
|
|
|
|
--with-user=operator \
|
1999-01-26 19:22:28 -05:00
|
|
|
--with-group=operator
|
1997-12-09 01:23:36 -05:00
|
|
|
|
2005-05-31 05:09:30 -04:00
|
|
|
# Use this flavor to speed things up if you have large AMANDA
|
|
|
|
# databases.
|
|
|
|
.if ${FLAVOR:L:Mdb}
|
2009-07-19 14:58:54 -04:00
|
|
|
LIB_DEPENDS+= lib/db4/db.>=4:db->=4,<5:databases/db/v4
|
2005-05-31 05:09:30 -04:00
|
|
|
CONFIGURE_ARGS+= --with-db=db
|
|
|
|
CFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mgpg}
|
|
|
|
BUILD_DEPENDS+= :gnupg-*:security/gnupg
|
|
|
|
CONFIGURE_ENV+= GZIP=${LOCALBASE}/bin/gpgzip
|
|
|
|
.endif
|
|
|
|
|
2005-11-25 04:08:01 -05:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS= --tag=disable-shared
|
|
|
|
|
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}; \
|
2005-05-04 13:08:24 -04:00
|
|
|
${INSTALL_DATA} AUTHORS ${DOC_DIR}; \
|
|
|
|
${INSTALL_DATA} NEWS ${DOC_DIR}; \
|
|
|
|
${INSTALL_DATA} README ${DOC_DIR}; \
|
|
|
|
${INSTALL_DATA} ChangeLog ${DOC_DIR}; \
|
2001-05-12 12:41:08 -04:00
|
|
|
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
|
2005-05-31 05:09:30 -04:00
|
|
|
@sed -e 's,@LOCALBASE@,${LOCALBASE},' \
|
|
|
|
${FILESDIR}/crontab.sample > ${EXAMPLE_DIR}/crontab.sample
|
2004-09-24 04:43:19 -04:00
|
|
|
@${INSTALL_DATA} /dev/null ${EXAMPLE_DIR}/amandates
|
2005-05-31 05:09:30 -04:00
|
|
|
@sed -e 's,@LOCALBASE@,${LOCALBASE},' \
|
|
|
|
-e 's,@SYSCONFDIR@,${SYSCONFDIR},' \
|
|
|
|
${FILESDIR}/gpgzip > ${PREFIX}/bin/gpgzip;
|
1997-12-09 01:23:36 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|