summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD90
1 files changed, 31 insertions, 59 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5639eb8dacb..959513ab799 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,49 +6,31 @@ _quagga='quagga'
_cumulus='CumulusNetworks'
pkgname="${_quagga}_cumulus"
pkgver='0.99.23.1'
-pkgrel='6'
+pkgrel='7'
pkgdesc="Routing daemon suite with ${_cumulus} patches. Support Multi-Instance OSPF."
arch=('i686' 'x86_64')
url="https://github.com/${_cumulus}/${_quagga}"
license=('GPL2')
depends=('libcap' 'libnl' 'readline' 'ncurses' 'perl' 'json-c')
-makedepends=('patch' 'gcc' 'grep')
-conflicts=("${_quagga}")
+makedepends=('patch' 'gcc' 'grep' 'json-c')
+conflicts=("${_quagga}" "frr")
provides=("${_quagga}")
-source=("http://download.savannah.gnu.org/releases/${_quagga}/${_quagga}-${pkgver}.tar.gz"
+source=("https://download.savannah.gnu.org/releases/${_quagga}/${_quagga}-${pkgver}.tar.gz"
"http://http.debian.net/debian/pool/main/q/${_quagga}/${_quagga}_0.99.22.4-1+wheezy2.debian.tar.gz"
"http://oss.cumulusnetworks.com/CumulusLinux-${_ver}.tar.gz"
"${_quagga}.sysusers"
"${_quagga}.tmpfiles"
- "babeld.service"
- "bgpd.service"
- "isisd.service"
- "ospf6d.service"
- "ospfd-instance@.service"
- "ospfd.service"
- "pimd.service"
- "ripd.service"
- "ripngd.service"
- "zebra.service"
"${_quagga}-${_cumulus}-2.5.6_json-c.patch"
- "${_quagga}-${_cumulus}-2.5.9_configure_shell.patch")
+ "${_quagga}-${_cumulus}-2.5.9_configure_shell.patch"
+ "${_quagga}-${_cumulus}-2.5.9_systemd.patch")
sha256sums=('3abf2046bc27539ce2d17c238e06c8fd0d479a8e402580c6aa455808bd48e004'
'091e57dfe070c70264079e436999dd629cbe18f03a4eaff29cd87718669e05de'
'aadf4b9cf54397645b4ed4fdcf1cb2ed180aa83c714546faabf4bd62d122b984'
'b531818654f9656c6a07127707785e55f7b3bd14568849e2f63c8f8e761223d0'
'4debff53306539b79d8e3e08844081a388f1897cee20bf2bc84e0efaff40fd9b'
- '105b8eac3c7d7dc2f1fffa382a2d9d6bf86182c9462708465a5d7216e2be41bd'
- 'bbb2dd1568f9711686e06aaff900eeda213e25cfb0e8fef7a8490cfdb3e88ee9'
- '94fb9b041cf38c3a48d208cf07d72a35f2fc0816fb6ca1c07df917d79f94445b'
- 'c860839456435531b552c4f34265a74cbadd0a4ce38002f2ef95eb30bd42e498'
- '75a8575fea45a275b9193d5dc4c2d6542e456591ae261d96b687740ff5990c3f'
- '5beb572614bdbf7df727f145c24b93e378d20ca85a7849e6e40a291849cec44f'
- '000e1d76067bebe0743bda670d2cbcd5b561e29985c8829366c77e0a5fe86d54'
- '802df30eb809cda5f491e90442d06e7f939c54131f22969011b93937feb4b523'
- '4ffca2fbde6a6beacd3860adc582bc0d63da6761eb8906ec4f7c15ce5096a78e'
- '95cee83175150f4c5e96a3561478428bae55ad4adc599352993de219e2084066'
'8a41060483d3b3b8645ffb18519efc3799c7819d1cfedc12c33eeb72483bd312'
- 'f5804e4d0cc310fe5a8dce93574710a8183211a9c4d76befb91002e318aeaed2')
+ 'f5804e4d0cc310fe5a8dce93574710a8183211a9c4d76befb91002e318aeaed2'
+ '04cfa8f8cc075e9554449f9ba8fc08abd0ecba8c51c86204c22a70e2619385aa')
prepare() {
# Cumulus patch set loads to Debian dpkg sources
@@ -62,46 +44,37 @@ prepare() {
echo -e "---------------------------------------------\\n"
done
+ echo -e "Arch Linux patches:\\n"
+ # Make Arch Systemd services from RedHat services
+ patch -p1 -i "${srcdir}/${_quagga}-${_cumulus}-2.5.9_systemd.patch"
# json in Debian = json-c in Arch
patch -p1 -i "${srcdir}/${_quagga}-${_cumulus}-2.5.6_json-c.patch"
# https://github.com/CumulusNetworks/quagga/commit/5fd1f74742debed7f5bfe5d9416f363906917ec5#diff-67e997bcfdac55191033d57a16d1408a
patch -p1 -i "${srcdir}/${_quagga}-${_cumulus}-2.5.9_configure_shell.patch"
autoreconf -fvi
-
./configure \
- --prefix=/usr \
- --sbindir=/usr/bin \
- --sysconfdir=/etc/quagga \
- --localstatedir=/run/quagga \
- --enable-exampledir=/usr/share/doc/quagga/examples \
- --enable-ipv6 \
- --enable-doc \
+ --prefix="/usr" \
+ --sbindir="/usr/bin" \
+ --sysconfdir="/etc/${_quagga}" \
+ --localstatedir="/run/${_quagga}" \
+ --enable-exampledir="/usr/share/doc/${_quagga}/examples" \
--enable-zebra \
- --enable-bgpd \
- --enable-ripd \
- --enable-ripngd \
- --enable-ospfd \
- --enable-ospf-te \
- --enable-opaque-lsa \
- --enable-ospf6d \
- --enable-babeld \
--enable-vtysh \
--enable-isisd \
--enable-isis-topology \
--enable-netlink \
- --enable-tcp-zebra \
--enable-irdp \
--enable-pcreposix \
--enable-multipath=64 \
- --enable-user=quagga \
- --enable-group=quagga \
- --enable-vty-group=quagga \
- --enable-configfile-mask=0640 \
- --enable-logfile-mask=0640 \
- --enable-systemd=yes \
- --enable-poll=yes \
- --enable-tcp-zebra
+ --enable-user="${_quagga}" \
+ --enable-group="${_quagga}" \
+ --enable-vty-group="${_quagga}vty" \
+ --enable-configfile-mask="0640" \
+ --enable-logfile-mask="0640" \
+ --enable-systemd \
+ --enable-poll \
+ --disable-watchquagga
}
build() {
@@ -110,18 +83,17 @@ build() {
}
package() {
- pushd "${srcdir}/${_quagga}-${pkgver}"
+ cd "${srcdir}/${_quagga}-${pkgver}"
make DESTDIR="${pkgdir}" install
- install -Dm0644 "redhat/${_quagga}.logrotate" "$pkgdir/etc/logrotate.d/${_quagga}"
- sed -ri 's|/var/run/quagga|/run/quagga|g' "$pkgdir/etc/logrotate.d/${_quagga}"
+ cd "redhat"
+ sed -ri 's|/var/run/quagga|/run/quagga|g' "${_quagga}.logrotate"
+ install -Dm0644 "${_quagga}.logrotate" "${pkgdir}/etc/logrotate.d/${_quagga}"
- pushd "${srcdir}"
- install -dm0755 "${pkgdir}"/usr/lib/{systemd/system,tmpfiles.d,sysusers.d}
for d in zebra ripd ripngd bgpd ospfd ospfd-instance@ ospf6d isisd babeld pimd; do
install -Dm0644 ${d}.service "${pkgdir}/usr/lib/systemd/system/${d}.service"
done
- install -Dm0644 "${_quagga}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${_quagga}.conf"
- install -Dm0644 "${_quagga}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${_quagga}.conf"
- popd
+
+ install -Dm0644 "${srcdir}/${_quagga}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${_quagga}.conf"
+ install -Dm0644 "${srcdir}/${_quagga}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${_quagga}.conf"
}