Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / net / istgt / Makefile
blob50c9a09268b8eae20fd7c33d9a19315183d8f3ec
1 # $NetBSD: Makefile,v 1.11 2012/08/14 11:14:40 sborrill Exp $
4 DISTNAME= istgt-20120811
5 CATEGORIES= net
6 MASTER_SITES= http://www.peach.ne.jp/archives/istgt/
8 MAINTAINER= sborrill@NetBSD.org
9 HOMEPAGE= http://shell.peach.ne.jp/aoyama/
10 COMMENT= Configurable iSCSI target
11 LICENSE= modified-bsd
13 GNU_CONFIGURE= yes
15 PKG_SYSCONFSUBDIR= istgt
17 CONFIGURE_ARGS+= --with-configdir=${PKG_SYSCONFDIR}
19 SUBST_CLASSES+= paths
20 SUBST_MESSAGE.paths= Fixing hardcoded paths.
21 SUBST_STAGE.paths= pre-configure
22 SUBST_FILES.paths= doc/istgt.1.in src/istgt.h src/istgtcontrol.c
23 SUBST_SED.paths= -e "s,/usr/local,${PREFIX},"
25 EG_DIR= ${PREFIX}/share/examples/istgt
26 CONF_FILES= ${EG_DIR}/auth.conf ${PKG_SYSCONFDIR}/auth.conf \
27 ${EG_DIR}/istgt.conf ${PKG_SYSCONFDIR}/istgt.conf \
28 ${EG_DIR}/istgtcontrol.conf ${PKG_SYSCONFDIR}/istgtcontrol.conf
30 RCD_SCRIPTS= istgt
31 INSTALLATION_DIRS+= bin ${EG_DIR} ${PKGMANDIR}/man1
33 do-install:
34 ${INSTALL_PROGRAM} ${WRKSRC}/src/istgt ${DESTDIR}${PREFIX}/bin/istgt
35 ${INSTALL_PROGRAM} ${WRKSRC}/src/istgtcontrol \
36 ${DESTDIR}${PREFIX}/bin/istgtcontrol
37 ${INSTALL_DATA} ${WRKSRC}/etc/auth.conf ${DESTDIR}${EG_DIR}/auth.conf
38 ${INSTALL_DATA} ${WRKSRC}/etc/istgt.conf ${DESTDIR}${EG_DIR}/istgt.conf
39 ${INSTALL_DATA} ${WRKSRC}/etc/istgt.large.conf \
40 ${DESTDIR}${EG_DIR}/istgt.large.conf
41 ${INSTALL_DATA} ${WRKSRC}/etc/istgtcontrol.conf \
42 ${DESTDIR}${EG_DIR}/istgtcontrol.conf
43 ${INSTALL_MAN} ${WRKSRC}/doc/istgt.1 \
44 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/istgt.1
46 .include "../../mk/bsd.pkg.mk"