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