Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kasra Jamshidi
slapos.package
Commits
db712ff8
Commit
db712ff8
authored
May 06, 2013
by
Vivien Alger
Committed by
Rafael Monnerat
Mar 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drafting for Arch packaging
parent
929efa67
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
0 deletions
+62
-0
obs/prepare_slapos_build.sh
obs/prepare_slapos_build.sh
+5
-0
obs/templates/PKGBUILD.in
obs/templates/PKGBUILD.in
+22
-0
obs/templates/slapos-node.install
obs/templates/slapos-node.install
+35
-0
No files found.
obs/prepare_slapos_build.sh
View file @
db712ff8
...
...
@@ -87,6 +87,11 @@ function obs_upload
sed
$VERSION_REGEX
$TEMPLATES_DIRECTORY
/slapos.dsc.in
>
$SLAPOS_DIRECTORY
.dsc
osc add
$SLAPOS_DIRECTORY
.dsc
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
"
...
...
obs/templates/PKGBUILD.in
0 → 100644
View file @
db712ff8
# 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
}
obs/templates/slapos-node.install
0 → 100644
View file @
db712ff8
# 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
#}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment