blob: 7e6135d8d44f9980b575a946c0b8f5cffbb8c0fe (
plain)
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
|
# $NetBSD: Makefile,v 1.1.1.1 2010/02/02 16:09:51 sborrill Exp $
#
DISTNAME= istgt-20100125
CATEGORIES= net
MASTER_SITES= http://shell.peach.ne.jp/~aoyama/wordpress/download/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://shell.peach.ne.jp/aoyama/
COMMENT= Configurable iSCSI target
LICENSE= modified-bsd
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
PKG_SYSCONFSUBDIR= istgt
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= doc/istgt.1 src/istgt.h src/istgtcontrol.h
SUBST_SED.paths= -e "s,/usr/local,${PREFIX},"
EG_DIR= ${PREFIX}/share/examples/istgt
CONF_FILES= ${EG_DIR}/auth.conf ${PKG_SYSCONFDIR}/auth.conf \
${EG_DIR}/istgt.conf ${PKG_SYSCONFDIR}/istgt.conf \
${EG_DIR}/istgtcontrol.conf ${PKG_SYSCONFDIR}/istgtcontrol.conf
RCD_SCRIPTS= istgt
INSTALLATION_DIRS+= bin ${EG_DIR} ${PKGMANDIR}/man1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/istgt ${DESTDIR}${PREFIX}/bin/istgt
${INSTALL_PROGRAM} ${WRKSRC}/src/istgtcontrol \
${DESTDIR}${PREFIX}/bin/istgtcontrol
${INSTALL_DATA} ${WRKSRC}/etc/auth.conf ${DESTDIR}${EG_DIR}/auth.conf
${INSTALL_DATA} ${WRKSRC}/etc/istgt.conf ${DESTDIR}${EG_DIR}/istgt.conf
${INSTALL_DATA} ${WRKSRC}/etc/istgt.large.conf \
${DESTDIR}${EG_DIR}/istgt.large.conf
${INSTALL_DATA} ${WRKSRC}/etc/istgtcontrol.conf \
${DESTDIR}${EG_DIR}/istgtcontrol.conf
${INSTALL_MAN} ${WRKSRC}/doc/istgt.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/istgt.1
.include "../../mk/bsd.pkg.mk"
|