aboutsummaryrefslogtreecommitdiffstats
path: root/www/hydra
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2003-11-21 06:27:12 +0800
committerkrion <krion@FreeBSD.org>2003-11-21 06:27:12 +0800
commitd8dd4d333ddb7347749f4bb60d44b9cbeac260bc (patch)
treeab89c4ec26a0b661cf849c999626709ef3eb021d /www/hydra
parent1808696553b88b430e03cdad990b0a30df5c8fde (diff)
downloadfreebsd-ports-gnome-d8dd4d333ddb7347749f4bb60d44b9cbeac260bc.tar.gz
freebsd-ports-gnome-d8dd4d333ddb7347749f4bb60d44b9cbeac260bc.tar.zst
freebsd-ports-gnome-d8dd4d333ddb7347749f4bb60d44b9cbeac260bc.zip
- Update to version 0.1.4
- Do not overwrite config files PR: 59490 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
Diffstat (limited to 'www/hydra')
-rw-r--r--www/hydra/Makefile8
-rw-r--r--www/hydra/distinfo2
-rw-r--r--www/hydra/files/patch-src::cgi_ssl.c11
-rw-r--r--www/hydra/pkg-plist10
4 files changed, 25 insertions, 6 deletions
diff --git a/www/hydra/Makefile b/www/hydra/Makefile
index 55a9a439d9d7..d678dea4bc21 100644
--- a/www/hydra/Makefile
+++ b/www/hydra/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= hydra
-PORTVERSION= 0.1.3
+PORTVERSION= 0.1.4
CATEGORIES= www
MASTER_SITES= ftp://ftp.hellug.gr/pub/software/hydra/ \
http://hydra.hellug.gr/download/ \
@@ -21,6 +21,8 @@ LIB_DEPENDS= gnutls.7:${PORTSDIR}/security/gnutls
USE_REINPLACE= yes
GNU_CONFIGURE= yes
+CFLAGS+= -I${LOCALBASE}/include
+
post-patch:
@${REINPLACE_CMD} -e "s,-pthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
.for file in src/defines.h examples/hydra.conf
@@ -30,7 +32,9 @@ post-patch:
post-install:
@${MKDIR} ${PREFIX}/etc/hydra
.for file in hydra.conf mime.types
- ${INSTALL_DATA} ${WRKSRC}/examples/${file} ${PREFIX}/etc/hydra
+ ${INSTALL_DATA} ${WRKSRC}/examples/${file} ${PREFIX}/etc/hydra/${file}-dist
+ [ -f ${PREFIX}/etc/hydra/${file} ] || \
+ ${INSTALL_DATA} ${WRKSRC}/examples/${file} ${PREFIX}/etc/hydra/
.endfor
.include <bsd.port.mk>
diff --git a/www/hydra/distinfo b/www/hydra/distinfo
index 7e0aeb46d2c7..a72eb5115b32 100644
--- a/www/hydra/distinfo
+++ b/www/hydra/distinfo
@@ -1 +1 @@
-MD5 (hydra-0.1.3.tar.gz) = 20c378932301851f38affc3da31208e0
+MD5 (hydra-0.1.4.tar.gz) = 786d0aab2fee387f899181523a6f57ed
diff --git a/www/hydra/files/patch-src::cgi_ssl.c b/www/hydra/files/patch-src::cgi_ssl.c
new file mode 100644
index 000000000000..bc8894a83588
--- /dev/null
+++ b/www/hydra/files/patch-src::cgi_ssl.c
@@ -0,0 +1,11 @@
+--- src/cgi_ssl.c.orig Thu Nov 20 01:00:59 2003
++++ src/cgi_ssl.c Thu Nov 20 01:01:17 2003
+@@ -19,7 +19,7 @@
+ */
+
+ #include "boa.h"
+-#include <gnutls/x509.h>
++#include <gnutls/gnutls.h>
+
+ #ifdef ENABLE_SSL
+ extern int ssl_verify;
diff --git a/www/hydra/pkg-plist b/www/hydra/pkg-plist
index 8c2f92106481..31bfeac1a305 100644
--- a/www/hydra/pkg-plist
+++ b/www/hydra/pkg-plist
@@ -1,6 +1,10 @@
bin/hydra
bin/boa_indexer
bin/webindex.pl
-etc/hydra/hydra.conf
-etc/hydra/mime.types
-@dirrm etc/hydra
+@unexec if cmp -s %D/etc/hydra/hydra.conf %D/etc/hydra/hydra.conf-dist; then rm -f %D/etc/hydra/hydra.conf; fi
+etc/hydra/hydra.conf-dist
+@exec [ -f %B/hydra.conf ] || cp %B/%f %B/hydra.conf
+@unexec if cmp -s %D/etc/hydra/mime.types %D/etc/hydra/mime.types-dist; then rm -f %D/etc/hydra/mime.types; fi
+etc/hydra/mime.types-dist
+@exec [ -f %B/mime.types ] || cp %B/%f %B/mime.types
+@unexec rmdir %D/etc/hydra 2> /dev/null || echo "Dont forget to remove %D/etc/hydra if you won't use hydra anymore"