Created
October 29, 2012 01:45
-
-
Save jeremyd/3970933 to your computer and use it in GitHub Desktop.
PKGBUILD cloud-init-bzr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=cloud-init | |
pkgver=701 | |
pkgrel=1 | |
pkgdesc="cloud-init from canonical" | |
arch=(any) | |
license=("GPLv3") | |
depends=(systemd python2 python2-yaml python2-cheetah python2-prettytable python2-oauth2 python2-boto python2-argparse python2-configobj) | |
makedepends=('bzr' 'python2') | |
_bzrtrunk="lp:~jeremydei/cloud-init/archlinux" | |
_bzrmod="cloud-init" | |
# python lib requirements (according to Requires file): | |
# cheetah (aur) PrettyTable (aur), oauth (aur), boto (aur), configobj (community), pyyaml (community), argparse (aur) | |
# ONLY non-match is python2-yaml vs pyyaml? | |
build() { | |
cd $srcdir | |
msg "Connecting to Bazaar server..." | |
if [ -d $_bzrmod ]; then | |
cd ${_bzrmod} && bzr pull ${_bzrtrunk} -r ${pkgver} | |
msg "The local files are updated." | |
else | |
bzr branch ${_bzrtrunk} ${_bzrmod} -q -r ${pkgver} | |
cd $_bzrmod | |
fi | |
msg "Bazaar checkout done or server timeout" | |
python2 ./setup.py install --root=${pkgdir} --init-system systemd | |
} | |
package() { | |
# Don't want configs in the package! | |
# User must install the config using /etc/cloud/archlinux.cloud.cfg as an example. | |
mv $pkgdir/etc/cloud/cloud.cfg $pkgdir/etc/cloud/cloud.cfg.default | |
rm $pkgdir/etc/systemd/system/cloud-init-local.service #cloud-init-local isn't something we want to start.? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment