You are not logged in.
Pages: 1
I posted a PKGBUILD for inn, and was wondering is anyone has had a play with it yet?
Also I need to learn a bit of bash to set the news users home directory when creating the user. Any thoughts on that would help.
Just for completeness here is the PKGBUILD:
pkgname=inn
pkgver=2.4.1
pkgrel=1
pkgdesc="inn, The Internet News Server, a highly scaleable news server which usenet relies on"
url="http://www.isc.org/index.pl?/sw/inn"
license=""
depends=('perl' 'python')
makedepends=()
conflicts=()
replaces=()
backup=(/etc/news/actsync.cfg /etc/news/actsync.ign /etc/news/buffindexed.conf
/etc/news/control.ctl /etc/news/cycbuff.conf /etc/news/distrib.pats
/etc/news/expire.ctl /etc/news/incoming.conf /etc/news/inn.conf
/etc/news/innfeed.conf /etc/news/innreport.conf /etc/news/innwatch.ctl
/etc/news/moderators /etc/news/motd.news /etc/news/news2mail.cf
/etc/news/newsfeeds /etc/news/nnrpd.track /etc/news/nntpsend.ctl
/etc/news/ovdb.conf /etc/news/overview.fmt /etc/news/passwd.nntp
/etc/news/radius.conf /etc/news/readers.conf /etc/news/sasl.conf
/etc/news/storage.conf /etc/news/subscriptions /etc/news/filter/INN.py
/etc/news/filter/filter.tcl /etc/news/filter/filter_innd.pl
/etc/news/filter/filter_innd.py /etc/news/filter/filter_nnrpd.pl
/etc/news/filter/nnrpd_auth.pl /etc/news/filter/nnrpd_auth.py
/etc/news/filter/startup.tcl /etc/news/filter/startup_innd.pl )
install="$pkgname.install"
source=(ftp://ftp.isc.org/isc/inn/$pkgname-$pkgver.tar.gz inn.install )
md5sums=('bec635b6e70188071fdb539cd374f2ba' '4c2436cf3d17263d4c76f34505bfe7d9')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --with-perl --with-python --prefix=/usr --sysconfdir=/etc/news
--localstatedir=/var/spool/news --with-db-dir=/var/spool/news/db
--with-etc-dir=/etc/news --with-run-dir=/var/spool/news/run
--with-spool-dir=/var/spool/news/newsspool --with-tmp-dir=/var/spool/news/tmp
--with-sendmail=/usr/sbin --with-log-dir=/var/log/news
--with-filter-dir=/etc/news/filter --includedir=/usr/inn/include
make || return 1
make DESTDIR=$startdir/pkg install
}
And here is inn.install, which I made by copying from clamav and adjusting a bit.
post_install() {
if [ -z "`getent group news`" ]; then
groupadd -g 9 news
fi
if [ -z "`getent passwd clamav`" ]; then
useradd -u 9 -g news -c "INN News Server" -d /dev/null -s /bin/false news
fi
}
#post_upgrade() {
# post_install $1
# echo "Warning: /etc/clamav/clamav.conf is now /etc/clamav/clamd.conf"
#}
pre_remove() {
userdel news &> /dev/null
groupdel news &> /dev/null
}
op=$1
shift
$op $*
You will need to redo makepkg -g to get the md5 sum right for the inn.install I suspect or just wipe out the line.
Also you should never do anything with inn as anything other than news as it makes a mess of permissions. That said you can edit /etc/news/ as root fine. Also i eould recomend reading the INSTALL file as failure to follow some instructions will cause a problem.
Kind regards
Benedict White
Offline
Pages: 1