pkgsrc/sysutils/su2/Makefile
jperkin 5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00

38 lines
955 B
Makefile

# $NetBSD: Makefile,v 1.18 2018/07/04 13:40:38 jperkin Exp $
#
DISTNAME= su2-1.3
CATEGORIES= sysutils security
MASTER_SITES= ftp://ftp.ccs.neu.edu/pub/sysadmin/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= ftp://ftp.ccs.neu.edu/pub/sysadmin/
COMMENT= Enhanced su, users su with own password + more
LICENSE= su2-license
SPECIAL_PERMS+= bin/su2 ${SETUID_ROOT_PERMS}
RESTRICTED= may not be sold for profit
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_CONFIGURE= yes
SUBST_CLASSES+= preproc
SUBST_MESSAGE.preproc= Correcting C preprocessor directives.
SUBST_STAGE.preproc= pre-configure
SUBST_FILES.preproc= su2.c
SUBST_SED.preproc= -e 's,^\(\# *else\).*,\1,'
SUBST_SED.preproc= -e 's,^\(\# *endif\).*,\1,'
OPSYSVARS+= LDLIBS
LDLIBS= -lcrypt
LDLIBS.NetBSD+= -lcompat
MAKE_ENV+= LDLIBS=${LDLIBS:Q}
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
post-extract:
${CHMOD} -R og+w ${WRKSRC}
.include "../../mk/bsd.pkg.mk"