c7ff05f63e
pkglint -Wall -r --only "substitution command" -F With manual review and indentation fixes since pkglint doesn't get that part correct in every case.
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2019/05/23 19:23:17 rillig Exp $
|
|
|
|
DISTNAME= tob-0.25
|
|
PKGREVISION= 2
|
|
CATEGORIES= sysutils
|
|
#MASTER_SITES= http://tinyplanet.ca/projects/tob/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
#HOMEPAGE= http://tinyplanet.ca/projects/tob/
|
|
COMMENT= General driver for making and maintaining backups
|
|
|
|
EGDIR= ${PREFIX}/share/examples/tob
|
|
CONF_FILES= ${EGDIR}/tob.rc ${PKG_SYSCONFDIR}/tob/tob.rc
|
|
CONF_FILES+= ${EGDIR}/example.exclude ${PKG_SYSCONFDIR}/tob/volumes/example.exclude
|
|
CONF_FILES+= ${EGDIR}/example.startdir ${PKG_SYSCONFDIR}/tob/volumes/example.startdir
|
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin ${EGDIR}
|
|
|
|
REPLACE_SH+= tob
|
|
USE_TOOLS+= sh:run
|
|
|
|
SUBST_CLASSES+= confdir
|
|
SUBST_STAGE.confdir= do-build
|
|
SUBST_MESSAGE.confdir= Adjusting configuration directory
|
|
SUBST_FILES.confdir= tob tob.rc
|
|
SUBST_VARS.confdir= PKG_SYSCONFDIR
|
|
SUBST_VARS.confdir+= VARBASE
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
OWN_DIRS+= ${VARBASE}/tob ${PKG_SYSCONFDIR}/tob/volumes
|
|
|
|
do-build:
|
|
@${DO_NADA}
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tob ${DESTDIR}${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/tob.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
|
|
${INSTALL_DATA} ${WRKSRC}/tob.rc ${DESTDIR}${EGDIR}/tob.rc
|
|
${INSTALL_DATA} ${WRKSRC}/example.exclude ${DESTDIR}${EGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/example.startdir ${DESTDIR}${EGDIR}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|