1

[alpine-devel] [PATCH] extra/maradns: new aport

Leonardo Arena
Details
Message ID
<9334be8a0905110453j727163cald5f87febc56d2010@mail.gmail.com>
Sender timestamp
1242042807
DKIM signature
missing
Download raw message
please review attached patch
leo
Natanael Copa
Details
Message ID
<1242220890.10810.49.camel@nc>
In-Reply-To
<9334be8a0905110453j727163cald5f87febc56d2010@mail.gmail.com> (view parent)
Sender timestamp
1242220890
DKIM signature
missing
Download raw message
On Mon, 2009-05-11 at 13:53 +0200, Leonardo Arena wrote:
> please review attached patch
> leo 
> 
> 
> 
> 
> 
> 
> differences between files attachment (0001-extra-maradns-new-aport.patch)
> 
> From 1b74dc27a6a635ddab39459adf301af4217e5ef5 Mon Sep 17 00:00:00 2001
> From: root <root@df1844j.(none)>
> Date: Mon, 11 May 2009 11:51:11 +0000
> Subject: [PATCH] extra/maradns: new aport
> 
> ---
>  extra/maradns/APKBUILD       |   61 ++++++++++++++++++++++++++++++++
>  extra/maradns/db.example.net |   80 ++++++++++++++++++++++++++++++++++++++++++
>  extra/maradns/mararc         |   38 ++++++++++++++++++++
>  3 files changed, 179 insertions(+), 0 deletions(-)
>  create mode 100644 extra/maradns/APKBUILD
>  create mode 100644 extra/maradns/db.example.net
>  create mode 100644 extra/maradns/mararc
> 
> diff --git a/extra/maradns/APKBUILD b/extra/maradns/APKBUILD
> new file mode 100644
> index 0000000..136fc97
> --- /dev/null
> +++ b/extra/maradns/APKBUILD
> @@ -0,0 +1,61 @@
> +# Maintainer: Leonardo Arena <rnalrd@gmail.com>
> +pkgname=maradns
> +pkgver=1.3.07.09
> +pkgrel=0
> +pkgdesc="A security-aware DNS server"
> +url="http://www.maradns.org"
> +license="as-is"
> +depends="uclibc"
> +makedepends=""
> +install=
> +subpackages="$pkgname-doc"
> +source="http://www.maradns.org/download/1.3/$pkgver/$pkgname-$pkgver.tar.bz2
> +mararc
> +db.example.net"
> +
> +build() {
> +       cd "$srcdir/$pkgname-$pkgver"
> +
> +       ./configure
> +       make || return 1
> +       install -m755 -D $srcdir/$pkgname-$pkgver/tools/askmara $pkgdir/usr/bin
> +       install -m755 -D $srcdir/$pkgname-$pkgver/tools/duende $pkgdir/usr/bin
> +       install -m755 -D $srcdir/$pkgname-$pkgver/tcp/fetchzone $pkgdir/usr/bin
> +       install -m755 -D $srcdir/$pkgname-$pkgver/tcp/getzone $pkgdir/usr/bin

Those lines here will install first askmara as usr/bin (the binary file
itself will be called bin in a /usr subdir). Directly after the 'bin'
file will be overwritten by duende, fetchzone and finally getzone.

The tar archive will contain an executable file named /usr/bin (which is
getzone).

> +       install -m755 -D $srcdir/$pkgname-$pkgver/server/maradns $pkgdir/usr/sbin
> +       install -m755 -D $srcdir/$pkgname-$pkgver/tcp/zoneserver $pkgdir/usr/sbin

Same here.
$ tar -ztvf maradns-1.3.07.09-r0.apk 
-rw-r--r-- root/root       327 2009-05-13 12:28:27 .PKGINFO
drwxr-xr-x root/root         0 2009-05-13 12:28:26 etc/
-rw-r--r-- root/root      1477 2009-05-13 12:28:26 etc/mararc
drwxr-xr-x root/root         0 2009-05-13 12:28:26 etc/maradns/
-rw-r--r-- root/root      2802 2009-05-13 12:28:26 etc/maradns/db.example.net
drwxr-xr-x root/root         0 2009-05-13 12:28:26 etc/maradns/logger/
drwxr-xr-x root/root         0 2009-05-13 12:28:27 usr/
-rwxr-xr-x root/root    127418 2009-05-13 12:28:27 usr/bin
-rwxr-xr-x root/root    149031 2009-05-13 12:28:27 usr/sbin


> +       install -m644 -D $srcdir/$pkgname-$pkgver/doc/en/man/askmara.1 $pkgdir/usr/share/man/man1

those lines do similar things.

Also, since you already are in "$srcdir"/$pkgname-$pkgver so you dont
need the "$srcdir/$pkgname-$pkgver prefix.

install -m755 -D server/maradns $pkgdir/usr/sbin/maradns

care to give a new try?
after package is built, run a tar -ztvf maradns.apk to verify that
things got properly installed.

-nc



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---