~cypheon/pkgsrc-wip

pkgsrc-wip/am-utils-git/Makefile -rw-r--r-- 1.2 KiB
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $NetBSD: Makefile,v 1.1 2013/08/30 15:03:43 hfath Exp $
#

DISTNAME=	am-utils-6.2
CATEGORIES=	sysutils
GIT_REPO=	git://git.fsl.cs.sunysb.edu/am-utils-6.2.git

MAINTAINER=		hauke@NetBSD.org
HOMEPAGE=		https://www.am-utils.org/
COMMENT=		Berkeley automounter suite of utilities
LICENSE=		original-bsd


USE_TOOLS+=		yacc lex perl:run automake gettext-m4
GNU_CONFIGURE=		yes
USE_LIBTOOL=		yes

INFO_FILES=		yes

CONFIGURE_ARGS+=	--without-ldap
CONFIGURE_ARGS+=	--without-hesiod
CONFIGURE_ARGS+=	--without-ndbm

RCD_SCRIPTS=		amd

EGDIR=			${PREFIX}/share/examples/${PKGBASE}
PKGDOCDIR=		${PREFIX}/share/doc/${PKGBASE}

INSTALLATION_DIRS+=	${EGDIR} ${PKGDOCDIR} etc/amd

EXTRA_DOC_FILES=	COPYING FAQ ChangeLog BUGS AUTHORS \
			README.attrcache README.autofs README.ldap \
			README.osx README.y2k NEWS README INSTALL
EXAMPLE_CONF_FILES=	amd.conf lostaltmail.conf

pre-configure:
	cd ${WRKSRC} && ${SH} bootstrap

post-install:
.for i in ${EXTRA_DOC_FILES}
	${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PKGDOCDIR}
.endfor
.for i in ${EXAMPLE_CONF_FILES}
	${INSTALL_DATA} ${WRKSRC}/scripts/${i}-sample ${DESTDIR}${EGDIR}/${i}
.endfor

.include "../../wip/mk/git-package.mk"
.include "../../mk/bsd.pkg.mk"