[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / time / anacron

File: [cvs.NetBSD.org] / pkgsrc / time / anacron / Makefile (download)

Revision 1.15, Sat May 23 14:12:46 2015 UTC (5 years ago) by bsiegert
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2
Changes since 1.14: +6 -5 lines

Use VARBASE as the base for the spool directory to support non-root installs.
From Andreas Kusalananda Kähäri by mail to pkgsrc-users.
Bump PKGREVISION.

# $NetBSD: Makefile,v 1.15 2015/05/23 14:12:46 bsiegert Exp $
#

DISTNAME=	anacron-2.3
PKGREVISION=	3
CATEGORIES=	time
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=anacron/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://anacron.sourceforge.net/
COMMENT=	Periodic command scheduler
LICENSE=	gnu-gpl-v2

USE_TOOLS+=		gmake

.include "../../mk/bsd.prefs.mk"

SUBST_CLASSES+=		hdr
SUBST_MESSAGE.hdr=	Setting up global.h.
SUBST_STAGE.hdr=	pre-configure
SUBST_FILES.hdr=	global.h
.if ${OPSYS} == "NetBSD"
SUBST_SED.hdr=		-e 's|SENDMAIL ".*"|SENDMAIL "/usr/sbin/sendmail"|'
.else
SUBST_SED.hdr=		-e 's|SENDMAIL ".*"|SENDMAIL "/usr/lib/sendmail"|'
.endif

SUBST_CLASSES+=		man
SUBST_MESSAGE.man=	Setting up manpages.
SUBST_STAGE.man=	pre-configure
SUBST_FILES.man=	anacrontab.5 anacron.8
SUBST_SED.man=		-e 's|/etc/anacrontab|${PKG_SYSCONFDIR}/anacrontab|g' \
			-e 's|/var/spool/anacron|${VARBASE}/spool/anacron|g'

MAKE_FLAGS+=		ANACRONTAB='${PKG_SYSCONFDIR}/anacrontab'
MAKE_FLAGS+=		BINDIR='${PREFIX}/sbin'
MAKE_FLAGS+=		CFLAGS=${CFLAGS:M*:Q}
MAKE_FLAGS+=		INSTALL_DATA=${INSTALL_DATA:Q}
MAKE_FLAGS+=		INSTALL_DIR=${TRUE:Q}
MAKE_FLAGS+=		INSTALL_PROGRAM=${INSTALL_PROGRAM:Q}
MAKE_FLAGS+=		MANDIR='${PREFIX}/man'
MAKE_FLAGS+=		PREFIX=${PREFIX:Q}
MAKE_FLAGS+=		SHELL=${SH:Q}
MAKE_FLAGS+=		SPOOLDIR='${VARBASE}/spool/anacron'

EGDIR=			${PREFIX}/share/examples/anacron
.if exists(${FILESDIR}/anacrontab.${OPSYS})
CONF_FILES=		${EGDIR}/anacrontab.${OPSYS} \
			${PKG_SYSCONFDIR}/anacrontab
CONF_FILES_MODE=	0600
.endif

OWN_DIRS=		${VARBASE}/spool/anacron

RCD_SCRIPTS=		anacron

INSTALLATION_DIRS=	${PKGMANDIR}/man5 ${PKGMANDIR}/man8 sbin ${EGDIR}

INSTALL_MAKE_FLAGS=	BINDIR=${DESTDIR}${PREFIX}/sbin \
			MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}

post-install:
	${INSTALL_DATA} ${FILESDIR}/anacrontab.FreeBSD ${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${FILESDIR}/anacrontab.NetBSD ${DESTDIR}${EGDIR}

.include "../../mk/bsd.pkg.mk"