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
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,696
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.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

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

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
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)


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Offline

Board footer

Powered by FluxBB