You are not logged in.
I am trying to make a package for amanda (Advanced Maryland Automatic Network Disk Archiver) http://www.amanda.org.
I have gotten everything to run fine, but the way the devs have set up their configure file (and the resulting build process),
I HAVE to specify a user account that the program will run as. If I do not specify (and create an account) the PKGBUILD will not run. Is this normal?
Is there a way to make the PKGBUILD create an account and a group? This account and group are need both DURING the build and during the install.
It has to be a pre-existing user account. Here is my PKGBUILD script:
pkgname=amanda
pkgver=2.6.0p1
pkgrel=1
pkgdesc="The Advanced Maryland Automatic Network Disk Archiver"
url="http://www.amanda.org/"
license=('BSD')
depends=("glibc")
#If you need amplot and/or samba support (for backing up windows clients) delete the line above and uncomment the line below this line
#depends=("glibc" "samba" "gnuplot")
install=(amanda.install)
arch=('x86_64' 'i686')
source=(
http://downloads.sourceforge.net/amanda/amanda-2.6.0p1.tar.gz
)
md5sums=('afadad80e0a27963a24b510755470983')
build() {
cd $startdir/src/amanda-2.6.0p1
# These config options are documented at:
# http://wiki.zmanda.com/index.php/Installation/Installing_Amanda_Source
./configure CFLAGS="-03 -Wall" \
--with-user=amanda \
--with-group=backup \
--prefix=$startdir/pkg/usr/local \
--with-amperldir=$startdir/pkg/usr/local/share/perl5/site_perl/5.10.0
make || return 1
make install prefix=$startdir/pkg/usr/local
I would really appreciate some help (this is my first pkg)
Also remember; this will not finish building without creating a user and a group
#groupadd backup
#useradd -g backup amanda
Last edited by timetrap (2008-06-19 19:08:09)
Offline
have amanda use a standard user/group. something like nobody should work. you might have to mess with the permissions. but I would stick to nobody/nobody or something standard.. less hastle
Offline
Thanks.
Yeah this is really kind of weird. I will try nobody:nobody for now, but I cannot imagine the reason to compile in a UID and GID to the program. I will take this upstream to the devs.
Offline
Timetrap,
Slight necropost.
Wondering if you have any updates on this? I was looking for an Amanda package and didn't see one, and decided to check the forum before starting on my own PKGBUILD.
Offline
I didn't take it any farther than the first post. I became frustrated with the chicken/egg relationship with account/makepkg.
The package works (as long as the user accounts are created first) if you can figure out a way around this issue feel free to update the pkg (then upload it to AUR).
The nobody/nobody idea didn't work for me, I cannot remember the reason why. It had something to do with permissions. Let me know if you need any help.
Last edited by timetrap (2009-01-01 03:12:17)
Offline
You can check the mailman PKGBUILD for an example on how to handle these kind of packages.
Offline
You can check the mailman PKGBUILD for an example on how to handle these kind of packages.
You sir,
Rock the House.
---
I'll start rebuilding this package next week. Look for it.
Last edited by timetrap (2009-01-03 21:24:31)
Offline
Timetrap,
I am interested in getting AMANDA to work in Arch. Could you post your entire PKGBUILD (including amanda.install) or post it on AUR? I would very much appreciate it!
Last edited by wsduvall (2009-02-17 20:22:59)
My 5 node 9 CPU cluster: www.amenrecluster.com
OS: Arch Linux
Machines:Fujitsu T4210 and IBM eServer xSeries 335
Offline
PKGBUILD is (finally) in the AUR:
http://aur.archlinux.org/packages.php?ID=29616
(sorry for the slightly necro-post)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline