summaryrefslogtreecommitdiffstats
path: root/src/ceph/make-apk.sh
blob: 39b3dff13e4ccf2f69924dfbb1d10fe98ef0466a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#
# Make Alpine Packages
#

set -xe

#
# make a distribution
#
./make-dist
mv -f *.tar.bz2 ./alpine

#
# alpine packaging key stuff
#
rm -rf .abuild && mkdir -p .abuild
ABUILD_USERDIR=$(pwd)/.abuild abuild-keygen -n -a
source .abuild/abuild.conf

#
# package it
#
cd alpine
abuild checksum && JOBS=$(expr $(nproc) / 2) SRCDEST=$(pwd) REPODEST=$(pwd) PACKAGER_PRIVKEY=$PACKAGER_PRIVKEY abuild -r
cd ..