summaryrefslogtreecommitdiff
path: root/mail/sqlgrey/files
diff options
context:
space:
mode:
Diffstat (limited to 'mail/sqlgrey/files')
-rw-r--r--mail/sqlgrey/files/patch-ipv611
-rw-r--r--mail/sqlgrey/files/pkg-install.in38
-rw-r--r--mail/sqlgrey/files/sqlgrey.in40
3 files changed, 0 insertions, 89 deletions
diff --git a/mail/sqlgrey/files/patch-ipv6 b/mail/sqlgrey/files/patch-ipv6
deleted file mode 100644
index 8be3f957e0a2..000000000000
--- a/mail/sqlgrey/files/patch-ipv6
+++ /dev/null
@@ -1,11 +0,0 @@
---- sqlgrey.orig 2013-09-27 06:51:40.913265753 -0500
-+++ sqlgrey 2013-09-27 06:51:25.000000000 -0500
-@@ -1037,7 +1037,7 @@
- return join(":", (split(/:/, $addr))[0..3]);
- } else {
- ## For Non-EUI64 or Non-Global-Unicast return the address
-- return $addr;
-+ return join(":", (split(/:/, $addr))[0..3]);
- }
- }
-
diff --git a/mail/sqlgrey/files/pkg-install.in b/mail/sqlgrey/files/pkg-install.in
deleted file mode 100644
index 9c7fc94636ef..000000000000
--- a/mail/sqlgrey/files/pkg-install.in
+++ /dev/null
@@ -1,38 +0,0 @@
-#! /bin/sh
-#
-# $FreeBSD$
-
-PATH=/bin:/usr/bin:/usr/sbin
-
-case $2 in
-
- POST-INSTALL)
-
- echo "---> Starting install script:"
-
- if [ -z "%%USER%%" -o -z "%%GROUP%%" ]; then
- echo "ERROR: A required pragma was empty"
- exit 1
- fi
-
- # Create home directory if required
- if [ -d "%%DATADIR%%" ]; then
- echo "---> Using existing Sqlgrey database directory (%%DATADIR%%)"
- echo " (There may be existing active sqlgrey databases - this installation"
- echo " will attempt to preserve them.)"
- else
- echo "---> Creating Sqlgrey database directory (%%DATADIR%%)"
- (umask 002 && /bin/mkdir -p "%%DATADIR%%") || exit 1
- /usr/sbin/chown -R "%%USER%%:%%GROUP%%" "%%DATADIR%%" || exit 1
- /bin/chmod g+s "%%DATADIR%%" || exit 1
- fi
- ;;
-
- POST-DEINSTALL)
-
- echo "---> Please, remember to remove the database directory:"
- echo " %%DATADIR%%"
- echo " If you're only updating, you can leave the things as they are."
- ;;
-
-esac
diff --git a/mail/sqlgrey/files/sqlgrey.in b/mail/sqlgrey/files/sqlgrey.in
deleted file mode 100644
index 2c807ba4fd62..000000000000
--- a/mail/sqlgrey/files/sqlgrey.in
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-# $FreeBSD$
-#
-# PROVIDE: sqlgrey
-# REQUIRE: LOGIN
-# BEFORE: mail
-# KEYWORD: shutdown
-#
-# Add the following lines to /etc/rc.conf to enable sqlgrey:
-#
-# sqlgrey_enable="YES"
-#
-# See man sqlgrey for flags or the config file.
-
-. /etc/rc.subr
-
-name=sqlgrey
-rcvar=sqlgrey_enable
-
-command=%%PREFIX%%/sbin/sqlgrey
-extra_commands=reload
-command_interpreter=%%PERL%%
-
-stop_postcmd=${name}_poststop
-
-load_rc_config $name
-
-sqlgrey_enable=${sqlgrey_enable-"NO"}
-required_files=${sqlgrey_config-"%%PREFIX%%/%%ETCDIR%%/sqlgrey.conf"}
-pidfile=${sqlgrey_pidfile-"/var/run/sqlgrey.pid"}
-
-command_args="--configfile=${required_files} --pidfile=${pidfile} --daemonize"
-
-sqlgrey_poststop()
-{
- rm -f $pidfile
-}
-
-run_rc_command "$1"