Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit ea6ad53

Browse files
author
Dan Kelleher
committed
Remove Arch from postinstall and added PKGBUILD and one-context.install
1 parent ad2d0be commit ea6ad53

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

PKGBUILD

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Maintainer Harvard University FAS Research Computing <rchelp.fas.harvard.edu>
2+
3+
pkgname=one-context
4+
pkgver=4.14.1
5+
pkgrel=1
6+
pkgdesc='OpenNebula Contextualisation'
7+
arch=('any')
8+
url='https://github.com/OpenNebula/addon-context-linux/releases'
9+
license=('Apache')
10+
depends=()
11+
source=("https://github.com/fasrc/addon-context-linux/archive/v4.14.1.3.tar.gz")
12+
install=one-context.install
13+
14+
package() {
15+
cp -rT ${srcdir}/addon-context-linux-4.14.1.3/base_arch ${pkgdir}
16+
cp -rT ${srcdir}/addon-context-linux-4.14.1.3/base ${pkgdir}
17+
cp -rT ${pkgdir}/usr/sbin ${pkgdir}/usr/bin
18+
rm -rf ${pkgdir}/usr/sbin
19+
}
20+
md5sums=('2c0633841563a0008e224014a7c01478')

one-context.install

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
post_install(){
2+
systemctl enable one-context
3+
4+
rm -f /etc/systemd/network/*
5+
}

postinstall

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,3 @@ if [ -d /etc/sysconfig/network-scripts ]; then
4242
# Prepare network files
4343
rm -f /etc/sysconfig/network-scripts/ifcfg-eth*
4444
fi
45-
46-
# Arch based distros
47-
if [ -d /etc/systemd/network]; then
48-
# Register Service
49-
sytemctl enable one-context
50-
51-
# Prepare network files
52-
rm -f /etc/systemd/network/*
53-
fi

0 commit comments

Comments
 (0)