diff options
| author | Arthur Jones <arthur.jones@riverbed.com> | 2018-03-11 10:32:24 -0700 | 
|---|---|---|
| committer | Arthur Jones <arthur.jones@riverbed.com> | 2018-03-11 11:28:45 -0700 | 
| commit | c737c7bab3a598c231ceee1d9fed7afec88f5bbf (patch) | |
| tree | d242cd862783a7e487539c49fd4e10fca6a96441 /alpine/APKBUILD.in | |
| parent | 6680578bb63a58f6877c92986902c86aedd7feff (diff) | |
alpine: minimal alpine packaging
For building dev packages for alpine, we provide a minimal APKBUILD
file and add a configure option for only numeric versions in the
VERSION variable as alpine does not allow non-numeric characters
in the version string.
These changes allow alpine to be built, but don't yet provide a
mechanism to build.  Changes to do the build in docker are coming
soon...
Testing done:
Built alpine packages in local docker environment, packages
showed no "dev" in the package name.  Also built CentOS packages
with numeric version disabled and the "dev" is still in the package
name.
Issue: https://github.com/FRRouting/frr/issues/1859
Signed-off-by: Arthur Jones <arthur.jones@riverbed.com>
Diffstat (limited to 'alpine/APKBUILD.in')
| -rw-r--r-- | alpine/APKBUILD.in | 36 | 
1 files changed, 36 insertions, 0 deletions
diff --git a/alpine/APKBUILD.in b/alpine/APKBUILD.in new file mode 100644 index 0000000000..33c2859245 --- /dev/null +++ b/alpine/APKBUILD.in @@ -0,0 +1,36 @@ +# Maintainer: Arthur Jones <arthur.jones@riverbed.com> +pkgname=frr +pkgver=@VERSION@ +pkgrel=0 +pkgdesc="Free Range Routing is a fork of quagga" +url="https://frrouting.org/" +arch="all" +license="GPL-2.0" +depends="iproute2 json-c c-ares ipsec-tools iproute2" +makedepends="ncurses-dev net-snmp-dev gawk texinfo perl +    acct autoconf automake bash +    binutils binutils-libs bison bsd-compat-headers build-base +    c-ares c-ares-dev ca-certificates cryptsetup-libs curl +    device-mapper-libs expat fakeroot flex fortify-headers gdbm +    git gmp isl json-c-dev kmod lddtree libacl libatomic libattr +    libblkid libburn libbz2 libc-dev libcap libcurl libedit libffi libgcc +    libgomp libisoburn libisofs libltdl libressl libssh2 +    libstdc++ libtool libuuid linux-headers lzip lzo m4 make mkinitfs mpc1 +    mpfr3 mtools musl-dev ncurses-libs ncurses-terminfo ncurses-terminfo-base +    patch pax-utils pcre perl pkgconf python2 python2-dev readline +    readline-dev sqlite-libs squashfs-tools sudo tar texinfo xorriso xz-libs" +subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg" +source="$pkgname-$pkgver.tar.gz" + +builddir="$srcdir"/$pkgname-$pkgver + +build() { +	cd "$builddir" +	./configure --prefix=/usr || return 1 +	make || return 1 +} + +package() { +	cd "$builddir" +	make DESTDIR="$pkgdir" install || return 1 +}  | 
