forked from ungleich-public/cdist
creating basic cdist archlinux package works
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
4c4b234feb
commit
195036b710
4 changed files with 23 additions and 10 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -22,3 +22,7 @@ cdist/version.py
|
||||||
|
|
||||||
# Packaging: Archlinux
|
# Packaging: Archlinux
|
||||||
/PKGBUILD
|
/PKGBUILD
|
||||||
|
/cdist-*.pkg.tar.xz
|
||||||
|
/cdist-*.tar.gz
|
||||||
|
/pkg
|
||||||
|
/src
|
||||||
|
|
14
PKGBUILD.in
14
PKGBUILD.in
|
@ -1,8 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
version=$(git describe)
|
version=$(git describe)
|
||||||
version=2.1.0pre1
|
|
||||||
|
|
||||||
outfile=${0%.in}
|
outfile=${0%.in}
|
||||||
|
|
||||||
cat << eof > "${outfile}"
|
cat << eof > "${outfile}"
|
||||||
|
@ -13,14 +11,16 @@ pkgdesc='A Usable Configuration Management System"'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url='http://www.nico.schottelius.org/software/cdist/'
|
url='http://www.nico.schottelius.org/software/cdist/'
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
depends=('python3>=3.2.0')
|
depends=('python>=3.2.0')
|
||||||
source=("http://pypi.python.org/packages/source/c/cdist/cdist-\${pkgver}.tar.gz")
|
source=("http://pypi.python.org/packages/source/c/cdist/cdist-\${pkgver}.tar.gz")
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py build install --root="${pkgdir}"
|
cd cdist-\${pkgver}
|
||||||
|
python3 setup.py build install --root="\${pkgdir}"
|
||||||
|
mv "\${pkgdir}"/usr/bin/cdist.py "\${pkgdir}"/usr/bin/cdist
|
||||||
|
|
||||||
#install -Dm644 offlineimap.1 "${pkgdir}"/usr/share/man/man1/offlineimap.1
|
#install -Dm644 offlineimap.1 "\${pkgdir}"/usr/share/man/man1/offlineimap.1
|
||||||
#install -Dm644 offlineimap.conf "${pkgdir}"/usr/share/offlineimap/offlineimap.conf
|
|
||||||
#install -Dm644 offlineimap.conf.minimal "${pkgdir}"/usr/share/offlineimap/offlineimap.conf.minimal
|
|
||||||
}
|
}
|
||||||
eof
|
eof
|
||||||
|
|
||||||
|
makepkg -g >> "${outfile}"
|
||||||
|
|
13
build
13
build
|
@ -92,7 +92,12 @@ case "$1" in
|
||||||
./docs/dev/releasehelper
|
./docs/dev/releasehelper
|
||||||
;;
|
;;
|
||||||
|
|
||||||
pypi)
|
dist-archlinux)
|
||||||
|
./PKGBUILD.in
|
||||||
|
makepkg
|
||||||
|
;;
|
||||||
|
|
||||||
|
dist-pypi)
|
||||||
$0 man
|
$0 man
|
||||||
$0 version
|
$0 version
|
||||||
$0 sdist
|
$0 sdist
|
||||||
|
@ -154,8 +159,12 @@ case "$1" in
|
||||||
find * -name __pycache__ | xargs rm -rf
|
find * -name __pycache__ | xargs rm -rf
|
||||||
;;
|
;;
|
||||||
clean-dist)
|
clean-dist)
|
||||||
rm -f cdist/version.py MANIFEST
|
rm -f cdist/version.py MANIFEST PKGBUILD
|
||||||
rm -rf cache/ dist/
|
rm -rf cache/ dist/
|
||||||
|
|
||||||
|
# Archlinux
|
||||||
|
rm -f cdist-*.pkg.tar.xz cdist-*.tar.gz
|
||||||
|
rm -rf pkg/ src/
|
||||||
;;
|
;;
|
||||||
|
|
||||||
very-clean)
|
very-clean)
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ setup(
|
||||||
packages = ["cdist", "cdist.core", "cdist.exec", "cdist.util" ],
|
packages = ["cdist", "cdist.core", "cdist.exec", "cdist.util" ],
|
||||||
scripts = ["cdist.py"],
|
scripts = ["cdist.py"],
|
||||||
version = cdist.version.VERSION,
|
version = cdist.version.VERSION,
|
||||||
description = "Usable configuration management system",
|
description = "A Usable Configuration Management System",
|
||||||
author = "Nico Schottelius",
|
author = "Nico Schottelius",
|
||||||
author_email = "nico-cdist-pypi@schottelius.org",
|
author_email = "nico-cdist-pypi@schottelius.org",
|
||||||
url = "http://www.nico.schottelius.org/software/cdist/",
|
url = "http://www.nico.schottelius.org/software/cdist/",
|
||||||
|
|
Loading…
Reference in a new issue