aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-05-06 17:03:51 +0800
committervs <vs@FreeBSD.org>2004-05-06 17:03:51 +0800
commitb5c2e36851d780c3b6cfee8de8bc732f3a21af1a (patch)
treebe2250bef9f8a02dec30957ccd56a72622e8c20a /www
parent8c0679d945a190ef061ad0d416b87c8f0e54eb8d (diff)
downloadfreebsd-ports-gnome-b5c2e36851d780c3b6cfee8de8bc732f3a21af1a.tar.gz
freebsd-ports-gnome-b5c2e36851d780c3b6cfee8de8bc732f3a21af1a.tar.zst
freebsd-ports-gnome-b5c2e36851d780c3b6cfee8de8bc732f3a21af1a.zip
- Add startup script and corresponding pkg-message
- Assign maintainer to submitter. Thanks to Mitsuru Yoshida for maintaing this port so far. - SED -> REINPLACE while here PR: ports/65746 Submitted by: Brad Davis
Diffstat (limited to 'www')
-rw-r--r--www/tinyproxy/Makefile13
-rw-r--r--www/tinyproxy/files/tinyproxy.sh14
-rw-r--r--www/tinyproxy/pkg-message4
-rw-r--r--www/tinyproxy/pkg-plist1
4 files changed, 27 insertions, 5 deletions
diff --git a/www/tinyproxy/Makefile b/www/tinyproxy/Makefile
index 268828a0961a..bd4c36bb21ea 100644
--- a/www/tinyproxy/Makefile
+++ b/www/tinyproxy/Makefile
@@ -11,7 +11,7 @@ CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
-MAINTAINER= mitsuru@riken.go.jp
+MAINTAINER= so14k@so14k.com
COMMENT= A small, efficient HTTP proxy server
GNU_CONFIGURE= yes
@@ -24,12 +24,15 @@ MAN8= tinyproxy.8
.include <bsd.port.pre.mk>
post-patch:
- @cd ${WRKSRC}/doc; f=tinyproxy.8; \
- ${MV} $$f $$f.orig; \
- ${SED} -e s:/etc/tinyproxy/tinyproxy.conf:${PREFIX}/etc/tinyproxy/tinyproxy.conf: \
- < $$f.orig > $$f
+ ${REINPLACE_CMD} -e s:/etc/tinyproxy/tinyproxy.conf:${PREFIX}/etc/tinyproxy/tinyproxy.conf: \
+ ${WRKSRC}/doc/tinyproxy.8
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|stdint.h|stdlib.h|' ${WRKSRC}/src/scanner.c
.endif
+post-install:
+ @${SED} -e "s#%PREFIX%#${PREFIX}#" ${FILESDIR}/tinyproxy.sh > ${WRKDIR}/tinyproxy.sh
+ @${INSTALL_SCRIPT} ${WRKDIR}/tinyproxy.sh ${LOCALBASE}/etc/rc.d
+ @${SED} -e "s#/usr/local/#${LOCALBASE}/#" ${PKGMESSAGE}
+
.include <bsd.port.post.mk>
diff --git a/www/tinyproxy/files/tinyproxy.sh b/www/tinyproxy/files/tinyproxy.sh
new file mode 100644
index 000000000000..ba15fe4c4e2c
--- /dev/null
+++ b/www/tinyproxy/files/tinyproxy.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+if [ $# -eq 0 -o x$1 = xstart ]; then
+ if [ -x %PREFIX%/sbin/tinyproxy ]; then
+ %PREFIX%/sbin/tinyproxy && echo ' tinyproxy'
+ fi
+fi
+if [ x$1 = xstop ]; then
+ if [ -f /var/run/tinyproxy.pid ]; then
+ kill `cat /var/run/tinyproxy.pid`
+ else
+ # oh well
+ killall tinyproxy
+ fi
+fi
diff --git a/www/tinyproxy/pkg-message b/www/tinyproxy/pkg-message
new file mode 100644
index 000000000000..d9d64b5ee0a6
--- /dev/null
+++ b/www/tinyproxy/pkg-message
@@ -0,0 +1,4 @@
+You may then start the server by running:
+
+ /usr/local/etc/rc.d/tinyproxy.sh start
+
diff --git a/www/tinyproxy/pkg-plist b/www/tinyproxy/pkg-plist
index d84e3f5e562c..498b5081fb97 100644
--- a/www/tinyproxy/pkg-plist
+++ b/www/tinyproxy/pkg-plist
@@ -1,3 +1,4 @@
+etc/rc.d/tinyproxy.sh
etc/tinyproxy/tinyproxy.conf-dist
sbin/tinyproxy
share/tinyproxy/HTML_VARIABLES