Remove Arch from postinstall and added PKGBUILD and one-context.install

pull/14/head
Dan Kelleher 9 years ago
parent 1d62ed4143
commit 2cd057a99f

@ -0,0 +1,20 @@
# Maintainer Harvard University FAS Research Computing <rchelp.fas.harvard.edu>
pkgname=one-context
pkgver=4.14.1
pkgrel=1
pkgdesc='OpenNebula Contextualisation'
arch=('any')
url='https://github.com/OpenNebula/addon-context-linux/releases'
license=('Apache')
depends=()
source=("https://github.com/fasrc/addon-context-linux/archive/v4.14.1.3.tar.gz")
install=one-context.install
package() {
cp -rT ${srcdir}/addon-context-linux-4.14.1.3/base_arch ${pkgdir}
cp -rT ${srcdir}/addon-context-linux-4.14.1.3/base ${pkgdir}
cp -rT ${pkgdir}/usr/sbin ${pkgdir}/usr/bin
rm -rf ${pkgdir}/usr/sbin
}
md5sums=('2c0633841563a0008e224014a7c01478')

@ -0,0 +1,5 @@
post_install(){
systemctl enable one-context
rm -f /etc/systemd/network/*
}

@ -42,12 +42,3 @@ if [ -d /etc/sysconfig/network-scripts ]; then
# Prepare network files # Prepare network files
rm -f /etc/sysconfig/network-scripts/ifcfg-eth* rm -f /etc/sysconfig/network-scripts/ifcfg-eth*
fi fi
# Arch based distros
if [ -d /etc/systemd/network]; then
# Register Service
sytemctl enable one-context
# Prepare network files
rm -f /etc/systemd/network/*
fi

Loading…
Cancel
Save