pkgsrc/net/rinetd/Makefile
rillig c7ff05f63e all: replace SUBST_SED with the simpler SUBST_VARS
pkglint -Wall -r --only "substitution command" -F

With manual review and indentation fixes since pkglint doesn't get that
part correct in every case.
2019-05-23 19:22:54 +00:00

38 lines
938 B
Makefile

# $NetBSD: Makefile,v 1.19 2019/05/23 19:23:10 rillig Exp $
#
DISTNAME= rinetd
PKGNAME= ${DISTNAME}-0.62
PKGREVISION= 3
CATEGORIES= net
MASTER_SITES= http://www.boutell.com/rinetd/http/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.boutell.com/rinetd/
COMMENT= Internet redirection server
NO_CONFIGURE= yes
BUILD_TARGET= rinetd
CPPFLAGS+= -DRINETD_CONF="\"${PKG_SYSCONFDIR}/rinetd.conf\""
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8
RCD_SCRIPTS= rinetd
SUBST_CLASSES+= paths
SUBST_FILES.paths= rinetd.8
SUBST_VARS.paths= PREFIX
SUBST_VARS.paths+= PKG_SYSCONFDIR
SUBST_STAGE.paths= pre-configure
LDFLAGS.SunOS+= -lsocket -lnsl
do-build:
cd ${WRKSRC} && env ${MAKE_ENV} ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o rinetd *.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rinetd ${DESTDIR}${PREFIX}/sbin/.
${INSTALL_MAN} ${WRKSRC}/rinetd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/.
.include "../../mk/bsd.pkg.mk"