aboutsummaryrefslogtreecommitdiff
path: root/net/iscsi-target
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2008-03-16 09:18:39 +0000
committerRong-En Fan <rafan@FreeBSD.org>2008-03-16 09:18:39 +0000
commitbd749638d7a211d3f768c03db15ffcd42c329a76 (patch)
treee8d4dd5af747dd375990d8a1236e1e7a2abc4d97 /net/iscsi-target
parentdebd6adca618a9a5029972323fe9953b4d6b006f (diff)
downloadports-bd749638d7a211d3f768c03db15ffcd42c329a76.tar.gz
ports-bd749638d7a211d3f768c03db15ffcd42c329a76.zip
- Respect SYSCONDIR setting, so the default configuration files will be
in PREFIX/etc, instead of /etc PR: ports/121733 Submitted by: Dierk Sacher <dierk at blaxxtarz.de> Approved by: Mark D. Foster <mark at foster.cc> (maintainer)
Notes
Notes: svn path=/head/; revision=209141
Diffstat (limited to 'net/iscsi-target')
-rw-r--r--net/iscsi-target/Makefile1
-rw-r--r--net/iscsi-target/files/patch-src-Makefile.in11
2 files changed, 12 insertions, 0 deletions
diff --git a/net/iscsi-target/Makefile b/net/iscsi-target/Makefile
index 4d1396fb1d95..05ed2cffcf74 100644
--- a/net/iscsi-target/Makefile
+++ b/net/iscsi-target/Makefile
@@ -7,6 +7,7 @@
PORTNAME= iscsi
PORTVERSION= 20080207
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/ \
http://www.magnesium.net/~mdf/distfiles/
diff --git a/net/iscsi-target/files/patch-src-Makefile.in b/net/iscsi-target/files/patch-src-Makefile.in
new file mode 100644
index 000000000000..d3af6e1617e6
--- /dev/null
+++ b/net/iscsi-target/files/patch-src-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig 2008-02-07 17:25:13.000000000 +0800
++++ Makefile.in 2008-03-16 17:16:12.000000000 +0800
+@@ -20,7 +20,7 @@
+ PTHREAD_LDFLAGS= -pthread
+ PTHREAD_LIBS= -lpthread
+ GCC_CFLAGS= -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -Wno-trigraphs
+-COMMON_CFLAGS += -DCONFIG_ISCSI_DEBUG -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
++COMMON_CFLAGS += -DCONFIG_ISCSI_DEBUG -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DSYSCONFDIR=\"${SYSCONFDIR}\"
+ COMMON_CFLAGS += -DHAVE_CONFIG_H
+ COMMON_CFLAGS += -I${INCDIR}
+ CFLAGS= @CFLAGS@ ${GCC_CFLAGS} ${COMMON_CFLAGS} -I${INCLUDE} ${PTHREAD_FLAGS}