2011-12-29 17:38:37 +01:00
|
|
|
# $NetBSD: Makefile,v 1.17 2011/12/29 16:38:37 joerg Exp $
|
2002-07-11 13:37:52 +02:00
|
|
|
|
|
|
|
DISTNAME= cdbkup-1.0
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 6
|
2002-07-11 13:37:52 +02:00
|
|
|
CATEGORIES= sysutils
|
2007-11-12 01:10:10 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cdbkup/}
|
2002-07-11 13:37:52 +02:00
|
|
|
|
2008-07-15 17:33:45 +02:00
|
|
|
MAINTAINER= mishka@NetBSD.org
|
2002-07-11 13:37:52 +02:00
|
|
|
HOMEPAGE= http://sourceforge.net/projects/cdbkup/
|
|
|
|
COMMENT= CD-R(W) backup/restore system
|
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2006-02-05 21:39:05 +01:00
|
|
|
DEPENDS+= {cdrtools,cdrtools-ossdvd}>=1.10:../../sysutils/cdrtools
|
2002-07-11 13:37:52 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= YES
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= cat date gtar perl:run
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= CAT=${TOOLS_CAT:Q}
|
|
|
|
CONFIGURE_ENV+= DATE=${TOOLS_DATE:Q}
|
2006-02-05 21:39:05 +01:00
|
|
|
CONFIGURE_ENV+= GNUTAR=${TOOLS_GTAR:Q}
|
2002-07-11 13:37:52 +02:00
|
|
|
|
2006-01-06 00:29:04 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2011-12-29 17:38:37 +01:00
|
|
|
.if ${OPSYS} == "SunOS"
|
2002-07-11 13:37:52 +02:00
|
|
|
CDBKUP_SNARDIR?= /var/${PKGBASE}
|
|
|
|
CDBKUP_DUMPGRP?= sys
|
|
|
|
.else
|
|
|
|
CDBKUP_SNARDIR?= /var/db/${PKGBASE}
|
|
|
|
CDBKUP_DUMPGRP?= operator
|
|
|
|
.endif
|
|
|
|
|
2011-12-29 17:38:37 +01:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
CONFIGURE_ENV+= MOUNT=/sbin/mount UMOUNT=/sbin/umount
|
|
|
|
.endif
|
|
|
|
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-snardir=${CDBKUP_SNARDIR:Q} \
|
|
|
|
--with-dumpgrp=${CDBKUP_DUMPGRP:Q}
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= CDBKUP_SNARDIR=${CDBKUP_SNARDIR:Q} \
|
|
|
|
CDBKUP_DUMPGRP=${CDBKUP_DUMPGRP:Q} \
|
|
|
|
INSTALL=${INSTALL:Q} RMDIR=${RMDIR:Q} TRUE=${TRUE:Q}
|
2002-07-11 13:37:52 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|