From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- mail-filter/popfile/files/popfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 mail-filter/popfile/files/popfile (limited to 'mail-filter/popfile/files') diff --git a/mail-filter/popfile/files/popfile b/mail-filter/popfile/files/popfile new file mode 100644 index 000000000000..84fe795d5bd9 --- /dev/null +++ b/mail-filter/popfile/files/popfile @@ -0,0 +1,33 @@ +#!/bin/bash +# +# /usr/bin/popfile +# Shell script wrapper around the popfile perl script +# +# Author Stuart Herbert +# (stuart@gentoo.org) +# +# Copyright Released into the public domain +# +# ------------------------------------------------------------------------ + +POPFILE_DIR=/usr/share/popfile +POPFILE_PL=popfile.pl + +if [[ `id -u` != 0 ]] ; then + echo "*** error: You must be root to run popfile" >&2 + exit 1 +fi + +if [[ ! -d $POPFILE_DIR ]] ; then + echo "*** error: Directory $POPFILE_DIR does not exist" >&2 + echo "*** Is popfile installed?" + exit 1 +fi + +if [[ ! -e $POPFILE_DIR/$POPFILE_PL ]] ; then + echo "*** error: popfile.pl is missing or not executable" >&2 + exit 1 +fi + +cd $POPFILE_DIR +exec ./$POPFILE_PL -- cgit v1.2.3