You are not logged in.

#1 2009-07-19 05:17:45

derelict
Member
Registered: 2006-07-25
Posts: 81

ufdbGuard pkgbuild fails - cannot find system rc init.d

Here's the PKGBUILD:

pkgname=ufdbguard
pkgver=1.18
arch=('i686')
pkgrel=1
pkgdesc="The best URL database and internet filter"
url="http://www.urlfilterdb.com/"
license=('GPL')
depends=(openssl bzip2)
makedepends=()
conflicts=()
replaces=()
backup=()
install=()
source=(http://www.urlfilterdb.com/download/free/ufdbGuard-latest.tar.gz)
md5sums=('1e097e1aa6b21134cef2bc82f86a8e2a')


build() {
    cd $startdir/src/
    mv ufdbGuard-$pkgver ufdbguard-$pkgver
    cd ufdbguard-$pkgver
    ./configure --prefix=/usr --with-ufdb-user=jason \
    --with-ufdb-config=${pkgdir}/etc/squid \
    --with-ufdb-logdir=${pkgdir}/var/log/ufdbguard \
    --with-ufdb-dbhome=${pkgdir}/var/blacklists \
    --with-ufdb-images_dir=${pkgdir}/usr/share/ufdbguard/images
    make || return 1
     make prefix=$startdir/pkg/usr install || return 1
    }

So the problem is this message when I try to build it:

make[1]: Entering directory `/home/jason/ufdbguard/src/ufdbguard-1.18/src'
./install_etcfiles.sh /home/jason/ufdbguard/pkg/etc/squid /home/jason/ufdbguard/pkg/usr/bin
pkgname=ufdbguard

=================================================================
Cannot find the system rc init.d directory   *******
Please run install_etcfiles.sh manually and specify the directory   ********
=================================================================

make[1]: *** [install.etc] Error 1
make[1]: Leaving directory `/home/jason/ufdbguard/src/ufdbguard-1.18/src'
make: *** [install.etc] Error 2
==> ERROR: Build Failed.
    Aborting...

I've looked at the install_etcfiles.sh script and the problem appears to be there. I probably need to figure out how to patch that script, but I don't know where to begin.

Last edited by derelict (2009-07-19 05:21:13)

Offline

#2 2009-07-19 06:34:18

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: ufdbGuard pkgbuild fails - cannot find system rc init.d

1. It's very frustrating: --with-ufdb-user=jason

Can you read it out from system variables/command ?

2.

Please run install_etcfiles.sh manually and specify the directory

Please try it, if the help message tells you tihs smile Of course archlinux hasn't got /etc/init.d/, but /etc/rc.d/, BSD like init scripts.

3. A cleaner PKGBUILD for it:

# Maintainer: You <your email>
pkgname=ufdbguard
pkgver=1.18
pkgrel=1
pkgdesc="The best URL database and internet filter"
url="http://www.urlfilterdb.com/"
license=('GPL')
depends=('openssl' 'bzip2')
arch=('i686')
source=(http://www.urlfilterdb.com/download/free/ufdbGuard-latest.tar.gz)
md5sums=('1e097e1aa6b21134cef2bc82f86a8e2a')


build() {
    cd $srcdir
    mv ufdbGuard-$pkgver ufdbguard-$pkgver
    cd ufdbguard-$pkgver
    ./configure --prefix=/usr --with-ufdb-user=jason \
    --with-ufdb-config=${pkgdir}/etc/squid \
    --with-ufdb-logdir=${pkgdir}/var/log/ufdbguard \
    --with-ufdb-dbhome=${pkgdir}/var/blacklists \
    --with-ufdb-images_dir=${pkgdir}/usr/share/ufdbguard/images
    make || return 1
     make prefix=$pkgdir/usr install || return 1
    }

Offline

#3 2009-07-20 06:14:43

derelict
Member
Registered: 2006-07-25
Posts: 81

Re: ufdbGuard pkgbuild fails - cannot find system rc init.d

Thanks for the cleaner package, but I don't understand what you mean by 'read it out from system variables command'. I have to specifiy a valid user or the package won't build. In production the build() would contain --with-ufdb-user=proxy which is the same user that runs the squid process. (I should probably add 'squid' to the depends array).

I tried running the install_etcfiles.sh script but was unsuccessful. I suspect that either this script or the insall script needs an archlinux specific patch to make it work.

Offline

#4 2009-07-25 06:31:22

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: ufdbGuard pkgbuild fails - cannot find system rc init.d

whoami command give back for example, and it's very independent solution, like yours not.

Offline

Board footer

Powered by FluxBB