You are not logged in.

#1 2007-06-23 12:40:42

esox_ch
Member
Registered: 2006-04-30
Posts: 45

Problem of permission in my PKGBUILD

Hello,

I'm trying to build my first package from scratch. It's "Biometrics manager" a GUI form BioAPI package.
I wrote a very basic PKGUILD

pkgname=biometrics-manager
pkgver=0.4rc1
pkgrel=1
pkgdesc="Gnome graphical interface for BioAPI"
url="http://www.nax.cz/2006/12/06/usability-tests-of-my-fingerprint-manager-gui/"
options=('!LIBTOOL')
arch=('i686')
license="GPL"
depends=('pam_bioapi' 'bioapi')
#md5sums=('5bdc98a888c324e091548de25b04d9f6')
source=(http://www.nax.cz/pub/bioapi/pam_bioapi/biometrics-manager-0.4rc1.tar.gz)
build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

But when I try to build it I get :
/bin/install: cannot create regular file `/etc/pam.d/biometrics-manager': Permission denied

Isn't the fakeroot supposed to be there just to get rid of that kind of problems ?

thanks a lot and sorry for the newbie question

Offline

#2 2007-06-23 13:32:35

mitsoko
Banned
From: In the Coal Chamber
Registered: 2007-05-08
Posts: 143

Re: Problem of permission in my PKGBUILD

maybe fakeroot isn't enabled in /etc/makepkg.conf ... in the BUILDENV array; !fakeroot -> fakeroot

Last edited by raeven (2007-06-23 13:33:30)

Offline

#3 2007-06-23 13:57:09

esox_ch
Member
Registered: 2006-04-30
Posts: 45

Re: Problem of permission in my PKGBUILD

My array is :

BUILDENV=(fakeroot !distcc color !ccache)

Offline

#4 2007-06-23 14:49:44

fancris3
Member
Registered: 2007-03-18
Posts: 67

Re: Problem of permission in my PKGBUILD

In PKGBUILD after " ./configure --prefix=/usr " put :
sed -i "s|/etc/pam.d/|$startdir/pkg/etc/pam.d/|g" /etc/pam.d/Makefile
I dont built this so maybe dont work.

Offline

#5 2007-06-23 15:10:58

esox_ch
Member
Registered: 2006-04-30
Posts: 45

Re: Problem of permission in my PKGBUILD

Thanks but I still get the same problem.
I noticed that the error comes after the command : /bin/sh ../../mkinstalldirs /etc/pam.d/
What can I do ?
Thanks for your help

Offline

#6 2007-06-23 15:19:34

fancris3
Member
Registered: 2007-03-18
Posts: 67

Re: Problem of permission in my PKGBUILD

I wrong : sed -i "s|/etc/pam.d/|$startdir/pkg/etc/pam.d/|g" /etc/pam.d/Makefile  its
sed -i "s|/etc/pam.d/|$startdir/pkg/etc/pam.d/|g" etc/pam.d/Makefile
I put a "/" more smile
CFGINST in $startdir/biometrics-manager-0.4rc1/etc/pam.d/Makefile its guilty.

Offline

#7 2007-06-23 15:29:05

esox_ch
Member
Registered: 2006-04-30
Posts: 45

Re: Problem of permission in my PKGBUILD

Thanks a lot, works great!

Offline

Board footer

Powered by FluxBB