initial import
This commit is contained in:
81
vde2/PKGBUILD
Normal file
81
vde2/PKGBUILD
Normal file
@@ -0,0 +1,81 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=vde2
|
||||
pkgver=2.3.2
|
||||
_debver=$pkgver
|
||||
_debrel=11
|
||||
pkgrel=12
|
||||
pkgdesc="Virtual Distributed Ethernet for emulators like QEMU"
|
||||
url='https://sourceforge.net/projects/vde/'
|
||||
license=('GPL-2')
|
||||
arch=('i686' 'x86_64')
|
||||
depends=('bash' 'libpcap' 'libressl')
|
||||
makedepends=('python' 'quilt')
|
||||
backup=(etc/conf.d/vde_switch)
|
||||
source=("https://downloads.sourceforge.net/vde/${pkgname}-${pkgver}.tar.bz2"
|
||||
"https://deb.debian.org/debian/pool/main/v/vde2/vde2_${_debver}+r586-${_debrel}.debian.tar.xz"
|
||||
"vde_cryptcab-compile-against-openssl-1.1.0.patch"
|
||||
"dhcpd.conf.sample"
|
||||
"vde-config.sample"
|
||||
"vde-connection.sample"
|
||||
"vde_switch.confd"
|
||||
"vde_switch.initd")
|
||||
install=$pkgname.install
|
||||
options=(!makeflags)
|
||||
sha512sums=('51be75fde5a526b988060f25322a8b20289b1677db2e3aa6dbee55875c1d7af564f9d8d201a0a4a1a842471cce06f29fcd83e55a5ff7acfdc36a8349cb2f3cc6'
|
||||
'1c60179f6706490e1573b0015a8ce1f27fa19f434c36d5aa6e664196f805cda2aed247b12ddf690aeb0b46309c1a12223638e5673bff32a2fd4e7804d77dbbab'
|
||||
'0a45a631d765779e916067b3789e38276e2ad72f3f97621a79a45bc8745f51f458993924307cf709535a806bed9cefee494012240e5fae19ce00efcf6a16f274'
|
||||
'58b0866cee781b7e6edc9cc1e991f01c01984b47df77742bd42decf4568061e7292c040b9f9aaef9c24aa779e988b82a71fa4212a59e1e7165767e29e35ef6b4'
|
||||
'd7d714d27a3c5680a35e6f1f52f0d9931c98495f56ef432cd644eb7b26e4d397ff73e26163967a7b50a175ccf81584bd009a814d9bc834be35e65186223c5976'
|
||||
'c064c8121ccad75d97e0d2fcdd04e8e233b30cacfe9409cd79b009ebc789e459ae07a3dbc07c71334b5ec62a2483a3ac696a6842777eac1fc16b21175a5ca963'
|
||||
'a56181bce04f3e1c67357ff7b90373406709f7a3140deba4ca3da3f49116932bb0f6c6cda9950b52df1af256542a6187562eb84b0d4043c84cfac186ab275e54'
|
||||
'599b3560721b6e31cbcc21e764df772bde2a8bbf131b47ebb575bf31855a53237dd1c265d33f31c91e3115d6f8cb9f94493d2dd6792c8bedb011299d1ed6d8e9')
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
# Doesn't apply
|
||||
rm -v debian/patches/compile_with_hurd.patch || true
|
||||
rm -v debian/patches/compile_with_kfreebsd.patch || true
|
||||
rm -v debian/patches/fix_soname_version_info.patch || true
|
||||
rm -v debian/patches/vde_cryptcab-compile-against-openssl-1.1.0.patch || true
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
patch -Np1 -i $srcdir/vde_cryptcab-compile-against-openssl-1.1.0.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/sbin \
|
||||
--sysconfdir=/etc \
|
||||
--libexecdir=/usr/libexec/vde2 \
|
||||
--enable-experimental
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -D -m 644 $srcdir/vde-config.sample $pkgdir/etc/vde/vde-config.sample
|
||||
install -D -m 644 $srcdir/vde-connection.sample $pkgdir/etc/vde/vde-connection.sample
|
||||
install -D -m 644 $srcdir/dhcpd.conf.sample $pkgdir/usr/share/vde2/dhcpd.conf.sample
|
||||
install -D -m 644 $srcdir/vde_switch.confd $pkgdir/etc/conf.d/vde_switch
|
||||
install -D -m 755 $srcdir/vde_switch.initd $pkgdir/etc/init.d/vde_switch
|
||||
|
||||
# install license files
|
||||
for i in COPYING*; do
|
||||
install -Dm644 COPYING* -t $pkgdir/usr/share/licenses/$pkgname
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user