summaryrefslogtreecommitdiff
path: root/www/squid/files
diff options
context:
space:
mode:
authorgrant <grant>2002-09-15 14:39:50 +0000
committergrant <grant>2002-09-15 14:39:50 +0000
commit6b8f0cf16ec7c04db21da56ad52779f67a23e5ec (patch)
tree21ec07b110c2c46e30995baf90350425acaa60f7 /www/squid/files
parentfdb5d95da66021ed09ccef0c52741cf5d8f892dc (diff)
downloadpkgsrc-6b8f0cf16ec7c04db21da56ad52779f67a23e5ec.tar.gz
* make use of PKG_SYSCONFDIR in rc script.
* use bsd.pkg.install.mk for rc script and config file installation. Checked by Stoned Elipot <seb@netbsd.org>.
Diffstat (limited to 'www/squid/files')
-rw-r--r--www/squid/files/squid.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/www/squid/files/squid.sh b/www/squid/files/squid.sh
index c1a775f15bf..b54d9e98946 100644
--- a/www/squid/files/squid.sh
+++ b/www/squid/files/squid.sh
@@ -1,20 +1,18 @@
-#! /bin/sh
+#!@SH@
#
-# $NetBSD: squid.sh,v 1.13 2002/03/18 21:27:00 tron Exp $
+# $NetBSD: squid.sh,v 1.14 2002/09/15 14:39:51 grant Exp $
#
# PROVIDE: squid
# REQUIRE: DAEMON
# KEYWORD: shutdown
-SQUID_CONF_DIR="@PREFIX@/etc/squid"
-
-conf_file="${SQUID_CONF_DIR}/squid.conf"
+conf_file="@PKG_SYSCONFDIR@/squid.conf"
name="squid"
command="@PREFIX@/sbin/${name}"
pidfile="/var/run/${name}.pid"
-required_files="${conf_file} ${SQUID_CONF_DIR}/mime.conf"
+required_files="${conf_file} @PKG_SYSCONFDIR@/mime.conf"
command_args="-Y -f $conf_file"
start_cmd="${command} ${command_args}"