You are not logged in.

#1 2013-08-15 17:38:43

kerim
Member
Registered: 2013-08-15
Posts: 2

HAVP package missing section of package()

In PKGBUILD is missing section of package.I don't know how to fill this section.Please help me.

ı have to write havp's missing section, hence i can compile and build my package

here is mine PKGBUILD file:

# Maintainer: Jason Begley <jayray@digitalgoat.com>

pkgname=havp
pkgver=0.92a
pkgrel=1
pkgdesc="Http AnviVirus Proxy."
url='http://www.server-side.de/'
license="GPL"
depends=('clamav')
arch=('x86_64')
backup=(etc/havp/havp.config)
        source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
        md5sums=('f9a37411116eceea579b9034c5fa8a69')
        build() {
                cd $startdir/src/$pkgname-$pkgver
                ./configure --prefix=/ \
                make || return 1
                make DESTDIR=$startdir/pkg install
                cd $startdir
                install -D -m755 $startdir/src/$pkgname-$pkgver/etc/init.d/$pkgname $startdir/pkg/etc/rc.d/$pkgname
                perl -pi -e  's/usr\/local\///' $startdir/pkg/etc/rc.d/$pkgname
                install=$pkgname.install
                }


as you can see, no package section.

Please help......

Offline

#2 2013-08-15 22:05:24

kerim
Member
Registered: 2013-08-15
Posts: 2

Re: HAVP package missing section of package()

I solved.....

to produce none empty package

in PKGBUILD change these lines

from:
   make DESTDIR=$startdir/havp install
to:
   make DESTDIR=$startdir/pkg/havp install


from:
   install -D -m755 $startdir/src/$pkgname-$pkgver/etc/init.d/$pkgname $startdir/havp/etc/rc.d/$pkgname
to:
   install -D -m755 $startdir/src/$pkgname-$pkgver/etc/init.d/$pkgname $startdir/pkg/havp/etc/rc.d/$pkgname


from:
   perl -pi -e 's/usr\/local\///' $startdir/havp/etc/rc.d/$pkgname
to:
   perl -pi -e 's/usr\/local\///' $startdir/pkg/havp/etc/rc.d/$pkgname

then it will produce all package content with full of files. wink

Offline

#3 2013-08-15 22:21:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,444
Website

Re: HAVP package missing section of package()

Please read the wiki on PKGBUILDS.  Also, posting commands in [ code ] blocks make them much more readable.  You should not use $startdir like that (or at all really).  Use $srcdir and $pkgdir.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2013-08-15 22:24:06

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,089
Website

Re: HAVP package missing section of package()

Okay, just a couple of things. First of all, you should really use code blocks when you post code:

for code tags are your friends

Second, there are a lot of things that you really shouldn't be doing there. For instance, if you're using "$startdir" in a PKGBUILD, something's probably being done wrong.
That make line should be something like this:

make DESTDIR="${pkgdir}" install

And the install commands should be run in a "package" function, not a "build" function.

[Edit]: Trilby beat me to the punch!

All the best,

-HG

Last edited by HalosGhost (2013-08-15 22:24:35)

Offline

Board footer

Powered by FluxBB