diff options
Diffstat (limited to 'unmaintained/bcfg2')
-rw-r--r-- | unmaintained/bcfg2/APK.py | 58 | ||||
-rw-r--r-- | unmaintained/bcfg2/APKBUILD | 43 | ||||
-rw-r--r-- | unmaintained/bcfg2/bcfg2-server.initd | 23 |
3 files changed, 0 insertions, 124 deletions
diff --git a/unmaintained/bcfg2/APK.py b/unmaintained/bcfg2/APK.py deleted file mode 100644 index 9b28d52076..0000000000 --- a/unmaintained/bcfg2/APK.py +++ /dev/null @@ -1,58 +0,0 @@ -"""This provides Bcfg2 support for alpinelinux APK packages.""" -__revision__ = '$Revision$' - -import Bcfg2.Client.Tools - -class APK(Bcfg2.Client.Tools.PkgTool): - """apk package support.""" - name = 'APK' - __execs__ = ["/sbin/apk"] - __handles__ = [('Package', 'apk')] - __req__ = {'Package': ['name', 'version']} - pkgtype = 'apk' - pkgtool = ("/sbin/apk add %s", ("%s", ["name"])) - - def __init__(self, logger, setup, config): - Bcfg2.Client.Tools.PkgTool.__init__(self, logger, setup, config) - self.installed = {} - self.RefreshPackages() - - def RefreshPackages(self): - """Refresh memory hashes of packages.""" - names = self.cmd.run("/sbin/apk info")[1] - nameversions = self.cmd.run("/sbin/apk info -v")[1] - for pkg in zip(names, nameversions): - pkgname = pkg[0] - version = pkg[1][len(pkgname)+1:] - self.logger.debug(" pkgname: %s\n version: %s" % (pkgname, version)) - self.installed[pkgname] = version - - def VerifyPackage(self, entry, modlist): - """Verify Package status for entry.""" - if not 'version' in entry.attrib: - self.logger.info("Cannot verify unversioned package %s" % - (entry.attrib['name'])) - return False - - if entry.attrib['name'] in self.installed: - if entry.attrib['version'] == 'auto' or self.installed[entry.attrib['name']] == entry.attrib['version']: - #if not self.setup['quick'] and \ - # entry.get('verify', 'true') == 'true': - #FIXME: We should be able to check this once - # http://trac.macports.org/ticket/15709 is implemented - return True - else: - self.loggger.info( " pkg %s at version %s, not %s" % (entry.attrib['name'],self.installed[entry.attrib['name']],entry.attrib['version']) ) - entry.set('current_version', self.installed[entry.get('name')]) - return False - entry.set('current_exists', 'false') - return False - - def RemovePackages(self, packages): - """Remove extra packages.""" - names = [pkg.get('name') for pkg in packages] - self.logger.info("Removing packages: %s" % " ".join(names)) - self.cmd.run("/sbin/apk del %s" % \ - " ".join(names)) - self.RefreshPackages() - self.extra = self.FindExtraPackages() diff --git a/unmaintained/bcfg2/APKBUILD b/unmaintained/bcfg2/APKBUILD deleted file mode 100644 index 21c4d0041f..0000000000 --- a/unmaintained/bcfg2/APKBUILD +++ /dev/null @@ -1,43 +0,0 @@ -# Contributor: Cameron Banta <cbanta@gmail.com> -# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=bcfg2 -pkgver=1.3.5 -pkgrel=0 -pkgdesc="A configuration management tool" -url="http://bcfg2.org" -arch="noarch" -license="BSD" -depends="python py-lxml" -makedepends="python-dev py-setuptools" -install="" -subpackages="$pkgname-doc $pkgname-server" -source="ftp://ftp.mcs.anl.gov/pub/bcfg/$pkgname-$pkgver.tar.gz - bcfg2-server.initd" - -_builddir="$srcdir"/$pkgname-$pkgver -build() { - cd "$_builddir" - python setup.py build || return 1 -} - -package() { - cd "$_builddir" - python setup.py install --root="$pkgdir" || return 1 -} - -server() { - depends="python bcfg2 py-lxml openssl" - - mkdir -p "$subpkgdir"/usr/bin - mv "$pkgdir"/usr/bin/bcfg2-* "$subpkgdir"/usr/bin/ - mkdir -p "$subpkgdir"/usr/share - mv "$pkgdir"/usr/share/bcfg2 "$subpkgdir"/usr/share/ - install -m755 -D bcfg2-server.initd "$subpkgdir"/etc/init.d/$subpkgname -} - -md5sums="35729ef9ee75cb0215e89f2578b9c1b7 bcfg2-1.3.5.tar.gz -9a13baa6f40267ff9dbec574967c5068 bcfg2-server.initd" -sha256sums="67af2ea039c159a88ea29105f40589b677a08359101b428afbab6e1fec117c06 bcfg2-1.3.5.tar.gz -c23385c66d5a472d3a322873b2873301db8f674af9e03c24105158c27ce0831c bcfg2-server.initd" -sha512sums="cd6b7785231e112fdb719747682d9d0f09e6dfc9bc24b8c44f07537b729b98e8bbab2106325ac04921ee2acdcf92077b3d716f9820457ab7091371a74a640190 bcfg2-1.3.5.tar.gz -8ad40aedeaa5084793a624599ff4ec61a1b6489854b5533504baf456c9c39f97a4c80a521909c7386c481d2417ad59f28735cfbeedf86468634223695f1dc2fc bcfg2-server.initd" diff --git a/unmaintained/bcfg2/bcfg2-server.initd b/unmaintained/bcfg2/bcfg2-server.initd deleted file mode 100644 index 5168f75822..0000000000 --- a/unmaintained/bcfg2/bcfg2-server.initd +++ /dev/null @@ -1,23 +0,0 @@ -#!/sbin/runscript -# -# bcfgd - bcfg configuration daemon -# -# - -depend () { - need net -} - -start () { - ebegin "Starting bcfg2-server" - start-stop-daemon --start --quiet --pidfile /var/run/bcfg2-server.pid \ - --startas /usr/bin/bcfg2-server -- -D /var/run/bcfg2-server.pid - eend $? "Failed to start bcfg2-server" -} - -stop () { - ebegin "Stopping bcfg2-server" - start-stop-daemon --stop --quiet --pidfile /var/run/bcfg2-server.pid \ - --signal INT - eend $? "Failed to stop bcfg2-server" -} |