| @@ -1,48 +1,48 @@ | | | @@ -1,48 +1,48 @@ |
1 | # $NetBSD: Makefile,v 1.7 2011/09/17 07:01:47 obache Exp $ | | 1 | # $NetBSD: Makefile,v 1.8 2011/09/17 07:03:57 obache Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= istgt-20110907 | | 4 | DISTNAME= istgt-20110907 |
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 | PKG_DESTDIR_SUPPORT= user-destdir | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 14 | |
15 | GNU_CONFIGURE= yes | | 15 | GNU_CONFIGURE= yes |
16 | | | 16 | |
17 | PKG_SYSCONFSUBDIR= istgt | | 17 | PKG_SYSCONFSUBDIR= istgt |
18 | | | 18 | |
19 | CONFIGURE_ARGS+= --with-configdir=${PKG_SYSCONFDIR} | | 19 | CONFIGURE_ARGS+= --with-configdir=${PKG_SYSCONFDIR} |
20 | | | 20 | |
21 | SUBST_CLASSES+= paths | | 21 | SUBST_CLASSES+= paths |
22 | SUBST_MESSAGE.paths= Fixing hardcoded paths. | | 22 | SUBST_MESSAGE.paths= Fixing hardcoded paths. |
23 | SUBST_STAGE.paths= pre-configure | | 23 | SUBST_STAGE.paths= pre-configure |
24 | SUBST_FILES.paths= doc/istgt.1 src/istgt.h src/istgtcontrol.c | | 24 | SUBST_FILES.paths= doc/istgt.1.in src/istgt.h src/istgtcontrol.c |
25 | SUBST_SED.paths= -e "s,/usr/local,${PREFIX}," | | 25 | SUBST_SED.paths= -e "s,/usr/local,${PREFIX}," |
26 | | | 26 | |
27 | EG_DIR= ${PREFIX}/share/examples/istgt | | 27 | EG_DIR= ${PREFIX}/share/examples/istgt |
28 | CONF_FILES= ${EG_DIR}/auth.conf ${PKG_SYSCONFDIR}/auth.conf \ | | 28 | CONF_FILES= ${EG_DIR}/auth.conf ${PKG_SYSCONFDIR}/auth.conf \ |
29 | ${EG_DIR}/istgt.conf ${PKG_SYSCONFDIR}/istgt.conf \ | | 29 | ${EG_DIR}/istgt.conf ${PKG_SYSCONFDIR}/istgt.conf \ |
30 | ${EG_DIR}/istgtcontrol.conf ${PKG_SYSCONFDIR}/istgtcontrol.conf | | 30 | ${EG_DIR}/istgtcontrol.conf ${PKG_SYSCONFDIR}/istgtcontrol.conf |
31 | | | 31 | |
32 | RCD_SCRIPTS= istgt | | 32 | RCD_SCRIPTS= istgt |
33 | INSTALLATION_DIRS+= bin ${EG_DIR} ${PKGMANDIR}/man1 | | 33 | INSTALLATION_DIRS+= bin ${EG_DIR} ${PKGMANDIR}/man1 |
34 | | | 34 | |
35 | do-install: | | 35 | do-install: |
36 | ${INSTALL_PROGRAM} ${WRKSRC}/src/istgt ${DESTDIR}${PREFIX}/bin/istgt | | 36 | ${INSTALL_PROGRAM} ${WRKSRC}/src/istgt ${DESTDIR}${PREFIX}/bin/istgt |
37 | ${INSTALL_PROGRAM} ${WRKSRC}/src/istgtcontrol \ | | 37 | ${INSTALL_PROGRAM} ${WRKSRC}/src/istgtcontrol \ |
38 | ${DESTDIR}${PREFIX}/bin/istgtcontrol | | 38 | ${DESTDIR}${PREFIX}/bin/istgtcontrol |
39 | ${INSTALL_DATA} ${WRKSRC}/etc/auth.conf ${DESTDIR}${EG_DIR}/auth.conf | | 39 | ${INSTALL_DATA} ${WRKSRC}/etc/auth.conf ${DESTDIR}${EG_DIR}/auth.conf |
40 | ${INSTALL_DATA} ${WRKSRC}/etc/istgt.conf ${DESTDIR}${EG_DIR}/istgt.conf | | 40 | ${INSTALL_DATA} ${WRKSRC}/etc/istgt.conf ${DESTDIR}${EG_DIR}/istgt.conf |
41 | ${INSTALL_DATA} ${WRKSRC}/etc/istgt.large.conf \ | | 41 | ${INSTALL_DATA} ${WRKSRC}/etc/istgt.large.conf \ |
42 | ${DESTDIR}${EG_DIR}/istgt.large.conf | | 42 | ${DESTDIR}${EG_DIR}/istgt.large.conf |
43 | ${INSTALL_DATA} ${WRKSRC}/etc/istgtcontrol.conf \ | | 43 | ${INSTALL_DATA} ${WRKSRC}/etc/istgtcontrol.conf \ |
44 | ${DESTDIR}${EG_DIR}/istgtcontrol.conf | | 44 | ${DESTDIR}${EG_DIR}/istgtcontrol.conf |
45 | ${INSTALL_MAN} ${WRKSRC}/doc/istgt.1 \ | | 45 | ${INSTALL_MAN} ${WRKSRC}/doc/istgt.1 \ |
46 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/istgt.1 | | 46 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/istgt.1 |
47 | | | 47 | |
48 | .include "../../mk/bsd.pkg.mk" | | 48 | .include "../../mk/bsd.pkg.mk" |