FreeBSD Bugzilla – Attachment 102942 Details for
Bug 142780
[NEW PORT] mail/sastatd: SpamAssassin statistic collecting server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
sastatd-0.03.shar
sastatd-0.03.shar (text/plain), 5.27 KB, created by
oleg
on 2010-01-13 14:20:08 UTC
(
hide
)
Description:
sastatd-0.03.shar
Filename:
MIME Type:
Creator:
oleg
Created:
2010-01-13 14:20:08 UTC
Size:
5.27 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># sastatd ># sastatd/pkg-descr ># sastatd/Makefile ># sastatd/pkg-plist ># sastatd/distinfo ># sastatd/files ># sastatd/files/pkg-install.in ># sastatd/files/sastatd.in ># sastatd/files/pkg-deinstall.in ># >echo c - sastatd >mkdir -p sastatd > /dev/null 2>&1 >echo x - sastatd/pkg-descr >sed 's/^X//' >sastatd/pkg-descr << 'END-of-sastatd/pkg-descr' >XSpamAssassin statistic collecting server >X >XWWW: http://search.cpan.org/dist/sastatd/ >END-of-sastatd/pkg-descr >echo x - sastatd/Makefile >sed 's/^X//' >sastatd/Makefile << 'END-of-sastatd/Makefile' >X# New ports collection makefile for: sastatd >X# Date created: 2010-01-12 >X# Whom: Oleg A. Mamontov <oleg@mamontov.net> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= sastatd >XPORTVERSION= 0.03 >XCATEGORIES= mail perl5 >XMASTER_SITES= CPAN >XMASTER_SITE_SUBDIR= ../by-authors/id/L/LO/LONERR >X >XMAINTAINER= oleg@mamontov.net >XCOMMENT= SpamAssassin statistic collecting server >X >XBUILD_DEPENDS= p5-JSON-Any>=0:${PORTSDIR}/converters/p5-JSON-Any \ >X p5-Log-Dispatch>=2.26:${PORTSDIR}/devel/p5-Log-Dispatch \ >X p5-Pid-File-Flock>=0:${PORTSDIR}/devel/p5-Pid-File-Flock \ >X p5-POE>=0:${PORTSDIR}/devel/p5-POE \ >X p5-Sys-Syslog>=0.16:${PORTSDIR}/sysutils/p5-Sys-Syslog \ >X >XRUN_DEPENDS= ${BUILD_DEPENDS} >X >XPERL_CONFIGURE= yes >X >XSASTATD_DBDIR?= /var/db/sastatd >XSASTATD_RUNDIR?= /var/run/sastatd >XSASTATD_USER?= sastatd >X >XUSE_RC_SUBR= sastatd >X >XSUB_LIST+= SASTATD_DBDIR=${SASTATD_DBDIR} \ >X SASTATD_RUNDIR=${SASTATD_RUNDIR} \ >X SASTATD_USER=${SASTATD_USER} \ >X CHMOD="${CHMOD}" CHOWN="${CHOWN}" MKDIR="${MKDIR}" PW="${PW}" >X >XPKGINSTALL= ${WRKDIR}/pkg-install >XPKGDEINSTALL= ${WRKDIR}/pkg-deinstall >X >XSUB_FILES+= pkg-install pkg-deinstall >X >XMAN1= sastatd.1 >X >Xpost-install: >X @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL >X >X.include <bsd.port.mk> >END-of-sastatd/Makefile >echo x - sastatd/pkg-plist >sed 's/^X//' >sastatd/pkg-plist << 'END-of-sastatd/pkg-plist' >X@comment $FreeBSD$ >Xbin/sastatd >X%%SITE_PERL%%/%%PERL_ARCH%%/auto/sastatd/.packlist >X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/sastatd >END-of-sastatd/pkg-plist >echo x - sastatd/distinfo >sed 's/^X//' >sastatd/distinfo << 'END-of-sastatd/distinfo' >XMD5 (sastatd-0.03.tar.gz) = 6b441d70da38d399a397882e07b85b48 >XSHA256 (sastatd-0.03.tar.gz) = 68ec569810f44f7170c42a509654c501f5607647243d4c54998788a9f30b7239 >XSIZE (sastatd-0.03.tar.gz) = 5730 >END-of-sastatd/distinfo >echo c - sastatd/files >mkdir -p sastatd/files > /dev/null 2>&1 >echo x - sastatd/files/pkg-install.in >sed 's/^X//' >sastatd/files/pkg-install.in << 'END-of-sastatd/files/pkg-install.in' >X#!/bin/sh >X# $FreeBSD$ >X >Xif [ "$2" != "POST-INSTALL" ]; then >X exit 0 >Xfi >X >XSASTATD_USER="%%SASTATD_USER%%" >XSASTATD_DBDIR="%%SASTATD_DBDIR%%" >XSASTATD_RUNDIR="%%SASTATD_RUNDIR%%" >X >XCHOWN="%%CHOWN%%" >XMKDIR="%%MKDIR%%" >XPW="%%PW%%" >X >X${PW} user show ${SASTATD_USER} >/dev/null 2>&1 && >X echo "===> Using existing user ${SASTATD_USER}" || { >X ${PW} useradd ${SASTATD_USER} && >X echo "===> Created user ${SASTATD_USER}" || { >X echo "*** Failed to create user ${SASTATD_USER}" >X exit 1 >X } >X } >X >Xfor DIR in ${SASTATD_DBDIR} ${SASTATD_RUNDIR}; do >X test -d ${DIR} || { >X ${MKDIR} -p ${DIR} && >X echo "===> Created directory ${DIR}" || { >X echo "*** Failed to create directory ${DIR}" >X exit 1 >X }; >X } >X ${CHOWN} -R ${SASTATD_USER} ${DIR} && >X echo "===> Changed ownership of ${DIR}" || { >X echo "*** Failed to changed ownership of ${DIR}" >X exit 1 >X } >Xdone >X >END-of-sastatd/files/pkg-install.in >echo x - sastatd/files/sastatd.in >sed 's/^X//' >sastatd/files/sastatd.in << 'END-of-sastatd/files/sastatd.in' >X#!/bin/sh >X# >X# $FreeBSD$ >X# >X >X# PROVIDE: sastatd >X# REQUIRE: LOGIN >X# KEYWORD: shutdown >X >X# Add the following lines to /etc/rc.conf to enable : >X# >X# sastatd_enable="YES" >X# sastatd_spamd_log="/var/log/spamd.log" >X# >X >X. "%%RC_SUBR%%" >X >X >Xname="sastatd" >Xrcvar=`set_rcvar` >X >Xload_rc_config "$name" >X: ${sastatd_enable="NO"} >X: ${sastatd_database="%%SASTATD_DBDIR%%/sastatd.db"} >X: ${sastatd_setuid="%%SASTATD_USER%%"} >X: ${sastatd_pidfile="%%SASTATD_RUNDIR%%/sastatd.pid"} >X: ${sastatd_flags="-d ${sastatd_database} -p ${sastatd_pidfile} -u ${sastatd_setuid}"} >X: ${sastatd_spamd_log="/var/log/spamd.log"} >X >Xcommand="%%PREFIX%%/bin/sastatd" >Xcommand_args="${sastatd_flags} ${sastatd_spamd_log}" >Xpidfile="${sastatd_pidfile}" >X >Xrun_rc_command "$1" >X >END-of-sastatd/files/sastatd.in >echo x - sastatd/files/pkg-deinstall.in >sed 's/^X//' >sastatd/files/pkg-deinstall.in << 'END-of-sastatd/files/pkg-deinstall.in' >X#!/bin/sh >X# $FreeBSD$ >X >Xif [ "$2" != "POST-DEINSTALL" ]; then >X exit 0 >Xfi >X >XSASTATD_USER=%%SASTATD_USER%% >XSASTATD_DBDIR=%%SASTATD_DBDIR%% >XSASTATD_RUNDIR=%%SASTATD_RUNDIR%% >X >Xcat <<EOM >X------------------------------------------------------------------------ >X NOTE! >X >XIf you are permanently removing sastatd, you may want also: >X >X 1. Delete user: 'pw userdel ${SASTATD_USER} >X 2. Delete directories: 'rmdir ${SASTATD_DBDIR} ${SASTATD_RUNDIR} >X >X------------------------------------------------------------------------ >XEOM >X >END-of-sastatd/files/pkg-deinstall.in >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 142780
: 102942