You are not logged in.

#1 2008-06-19 18:25:18

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

amanda; And creating user accounts BEFORE the build process

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

#2 2008-06-19 19:33:52

zio
Member
Registered: 2008-03-31
Posts: 30

Re: amanda; And creating user accounts BEFORE the build process

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

#3 2008-06-19 20:43:27

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: amanda; And creating user accounts BEFORE the build process

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

#4 2008-12-30 21:11:21

miah
Member
From: US
Registered: 2008-12-30
Posts: 4

Re: amanda; And creating user accounts BEFORE the build process

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

#5 2009-01-01 03:00:54

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: amanda; And creating user accounts BEFORE the build process

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

#6 2009-01-01 06:28:46

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: amanda; And creating user accounts BEFORE the build process

You can check the mailman PKGBUILD for an example on how to handle these kind of packages.

Offline

#7 2009-01-03 21:23:40

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: amanda; And creating user accounts BEFORE the build process

Snowman wrote:

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

#8 2009-02-13 18:46:45

wsduvall
Member
From: Blacksburg
Registered: 2009-02-05
Posts: 54
Website

Re: amanda; And creating user accounts BEFORE the build process

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

#9 2009-08-28 02:54:31

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,226
Website

Re: amanda; And creating user accounts BEFORE the build process

PKGBUILD is (finally) in the AUR:
http://aur.archlinux.org/packages.php?ID=29616

(sorry for the slightly necro-post)

Offline

Board footer

Powered by FluxBB