2019-05-23 21:22:54 +02:00
|
|
|
# $NetBSD: Makefile,v 1.19 2019/05/23 19:23:04 rillig Exp $
|
2001-04-27 16:06:05 +02:00
|
|
|
|
|
|
|
DISTNAME= deliver-2.1.14
|
2012-09-09 20:28:07 +02:00
|
|
|
PKGREVISION= 3
|
2001-04-27 16:06:05 +02:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=deliver/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-04-27 16:06:05 +02:00
|
|
|
HOMEPAGE= http://deliver.sourceforge.net/
|
|
|
|
COMMENT= Local mail delivery agent with shell-script control
|
|
|
|
|
2012-09-09 20:28:07 +02:00
|
|
|
CONFLICTS= avenger-[0-9]*
|
|
|
|
|
2006-06-21 00:12:59 +02:00
|
|
|
USE_TOOLS+= yacc
|
|
|
|
|
2005-06-01 16:45:01 +02:00
|
|
|
PKG_SYSCONFSUBDIR= deliver
|
2001-04-27 16:06:05 +02:00
|
|
|
|
2005-06-01 16:45:01 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.deliver
|
|
|
|
PKG_SUPPORTED_OPTIONS= deliver-suid
|
2001-04-27 16:06:05 +02:00
|
|
|
|
2009-06-30 00:40:28 +02:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1 \
|
|
|
|
share/doc/deliver share/examples/deliver
|
|
|
|
|
2006-10-28 17:17:17 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2008-03-11 19:47:40 +01:00
|
|
|
.if !empty(MACHINE_PLATFORM:MIRIX-5*)
|
2006-10-28 17:17:17 +02:00
|
|
|
CPPFLAGS+= -DNO_SYS_TIMEB_H
|
|
|
|
.endif
|
|
|
|
|
2005-06-01 16:45:01 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
2001-04-27 16:06:05 +02:00
|
|
|
|
2009-06-30 00:40:28 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mdeliver-suid)
|
|
|
|
SPECIAL_PERMS+= bin/deliver ${SETUID_ROOT_PERMS}
|
|
|
|
.endif
|
|
|
|
|
2012-09-09 20:28:07 +02:00
|
|
|
SUBST_CLASSES+= sources
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.sources= pre-configure
|
2012-09-09 20:28:07 +02:00
|
|
|
SUBST_MESSAGE.sources= Fixing source code.
|
|
|
|
SUBST_FILES.sources= config.h deliver.8 conf/os-netbsd.h
|
2018-01-01 19:16:35 +01:00
|
|
|
SUBST_SED.sources= -e 's,@DELIVER_CONF_PREFIX@,${PKG_SYSCONFDIR},g'
|
2019-05-23 21:22:54 +02:00
|
|
|
SUBST_VARS.sources= PREFIX
|
2012-09-09 20:28:07 +02:00
|
|
|
|
2003-07-02 13:32:35 +02:00
|
|
|
pre-configure:
|
2012-09-09 20:28:07 +02:00
|
|
|
set -e; cd ${WRKSRC}; \
|
2001-04-27 16:06:05 +02:00
|
|
|
${MV} deliver.8 deliver.1
|
|
|
|
|
2009-06-30 00:40:28 +02:00
|
|
|
do-install:
|
2012-09-09 20:28:07 +02:00
|
|
|
set -e; \
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/deliver ${DESTDIR}${PREFIX}/bin; \
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/header ${DESTDIR}${PREFIX}/bin; \
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/deliver.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/header.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
|
2001-04-27 16:06:05 +02:00
|
|
|
cd ${WRKSRC}; \
|
|
|
|
${INSTALL_DATA} INSTALL MMDF README SENDMAIL \
|
2012-09-09 20:28:07 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/doc/deliver; \
|
2001-04-27 16:06:05 +02:00
|
|
|
cd ${WRKSRC}/samples; \
|
|
|
|
${INSTALL_DATA} README p-aliases s-aliases u-chip u-notify u-vacation \
|
2009-06-30 00:40:28 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/deliver
|
2001-04-27 16:06:05 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|