aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2008-03-16 17:18:39 +0800
committerrafan <rafan@FreeBSD.org>2008-03-16 17:18:39 +0800
commitc90dd5194262161071f66245d846064c9629c317 (patch)
treecafa46852d12879e7a361ef2f41cce92f9275e28
parentb8dc3c56f69253f7d1a91c4f23bede759c5c7f9b (diff)
downloadfreebsd-ports-gnome-c90dd5194262161071f66245d846064c9629c317.tar.gz
freebsd-ports-gnome-c90dd5194262161071f66245d846064c9629c317.tar.zst
freebsd-ports-gnome-c90dd5194262161071f66245d846064c9629c317.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)
-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}