...
 
Commits (4)
......@@ -3,3 +3,4 @@ slapprepare/build
slapprepare/dist
slapprepare/slapprepare.egg-info
.*.swp
*~
\ No newline at end of file
......@@ -65,6 +65,12 @@ osc rm -f slapos*.dsc
sed $VERSION_REGEX $TEMPLATES_DIRECTORY/slapos.dsc.in > $SLAPOS_DIRECTORY.dsc
osc add $SLAPOS_DIRECTORY.dsc
#prepare new PKGBUILD file
osc rm -f PKGBUILD
sed $VERSION_REGEX $TEMPLATES_DIRECTORY/PKGBUILD.in > PKGBUILD
cp $TEMPLATES_DIRECTORY/slapos-node.install .
osc add PKGBUILD slapos-node.install
## Upload new Package
osc commit -m "New SlapOS Recipe $RECIPE_VERSION"
......
# Maintainer: Vivien Alger <algervivie@tiolive.com>
pkgname=slapos-node
pkgver=%VERSION%+%RECIPE_VERSION%+%RELEASE%
pkgdesc="Slapos client"
arch=('x86_64' 'i686')
url="http://www.slapos.org"
license=('GPL')
depends=('gcc' 'make' 'patch' 'wget' 'python2' 'python2-distribute' 'bridge-utils' 'openvpn')
makedepends=('gcc' 'make' 'patch' 'wget' 'python2' 'python2-distribute' 'chrpath')
install='slapos-node.install'
source=($pkgname_$pkgver.tar.gz)
md5sums=() #generate with 'makepkg -g'
build() {
cd "$srcdir/$pkgname_$pkgver"
make
}
package() {
cd "$srcdir/$pkgname_$pkgver"
make DESTDIR="$pkgdir/" install
}
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
#pre_install() {
# do something here
#}
## arg 1: the new package version
#post_install() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
#pre_upgrade() {
# do something here
#}
## arg 1: the new package version
## arg 2: the old package version
#post_upgrade() {
# do something here
#}
## arg 1: the old package version
#pre_remove() {
# do something here
#}
## arg 1: the old package version
#post_remove() {
# do something here
#}