openbsd-ports/net/uucp/Makefile
sturm ca4bae8577 - don't hardcode /etc, use SYSCONFDIR instead
- don't change SYSCONFDIR, use CONFDIR/SUBST_VARS instead and if neccessary
  use "CONFIGURE_STYLE=gnu old" and explicitly set --sysconfdir=${CONFDIR}
a few more to come...
2003-05-12 18:02:44 +00:00

37 lines
882 B
Makefile

# $OpenBSD: Makefile,v 1.10 2003/05/12 18:02:45 sturm Exp $
COMMENT= "UUCP suite"
DISTNAME= uucp-1.06.2
CATEGORIES= net mail
MASTER_SITES= ${MASTER_SITE_GNU:=uucp/}
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WRKDIST= ${WRKDIR}/uucp-1.06.1
CONFIGURE_STYLE= gnu dest old
MAKE_FLAGS+= sbindir='$$(PREFIX)/libexec/uucp' \
newconfigdir=${SYSCONFDIR}/uucp \
oldconfigdir=${SYSCONFDIR}/uucp \
MAKEINFO='makeinfo --no-split'
NO_REGRESS= Yes
FAKE_FLAGS= DESTDIR=${WRKINST} $(MAKE_FLAGS)
FAKE_TARGET= install install-info
post-install:
@perl -pi -e "s,%%SYSCONFDIR%%,${SYSCONFDIR}," \
${PREFIX}/man/man1/uu{cp,stat,x}.1 \
${PREFIX}/man/man8/uu{cico,xqt}.8
@mv ${PREFIX}/libexec/uucp/uusched ${PREFIX}/bin
@chown ${BINOWN}:${BINGRP} ${PREFIX}/bin/cu
@chmod ${BINMODE} ${PREFIX}/bin/cu
.include <bsd.port.mk>