You are not logged in.

#1 2015-11-02 12:36:27

JimmyJ
Member
Registered: 2015-03-22
Posts: 3

Need some help setting up the honeyd AUR

Hey all,

I was hoping to get honeyd back in the AUR, but I'm (being new at maintaining) not doing so well. Any help, to help me learn will be greatly appreciated!

AUR is here: https://aur.archlinux.org/packages/honeyd/

The PKGBUILD:

pkgname=honeyd
pkgver=1.5c
pkgrel=5
pkgdesc="A small daemon that creates virtual hosts on a network."
depends=('libdnet' ' libevent' 'libpcap')
source=(http://www.honeyd.org/uploads/$pkgname-$pkgver.tar.gz)
md5sums=('9887b44333e380a2205f64fa245cb727')
arch=(i686 x86_64 arm)
url="http://www.honeyd.org"
license=("GPL")

build()
{
	cd $srcdir/$pkgname-$pkgver
  	mkdir -p $pkgdir/usr/share/honeyd
}

package()
{
	./configure --prefix=/usr
	make || return 1
	make prefix=$pkgdir/usr install
}

permissions()
{
	# Fix permissions on webserver dirs
	for dir in webserver webserver/htdocs webserver/htdocs/graphs \
	webserver/htdocs/images webserver/htdocs/styles webserver/htdocs/templates \
	webserver/htdocs/templates/inc
		do chmod 755 $pkgdir/usr/share/honeyd/$dir
	done
}

Last edited by JimmyJ (2015-11-02 12:36:58)

Offline

#2 2015-11-02 13:10:57

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,648
Website

Re: Need some help setting up the honeyd AUR

You can't do anything with $pkgdir in the build function, so your mkdir command should move to the package function (assuming it is needed).

"make" should be in the build function. You also don't need "|| return 1" after make; if make fails, makepkg will abort anyway.

Your permissions function is never used, and should be merged into the package function if you want it to run.

Overriding the prefix when you run "make install" seems like an awkward way of doing things, check the Makefile and see if it has a destdir option.

You should always doublequote instances of $srcdir and $pkgdir, as these variables may have spaces in them.

Also, it is generally accepted practice to leave the variable order the same as the prototype (/usr/share/pacman/PKGBUILD.proto), though this isn't required. You should add your details to the top of the file, as per the prototype.

You also shouldn't upload broken packages to the AUR, then decide to fix them.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-11-02 13:26:37

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,394

Re: Need some help setting up the honeyd AUR

Wormzy said it better/more complete then i did.

Last edited by Lone_Wolf (2015-11-02 13:32:31)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB