X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.bett.ag (mail.bett.ag [80.83.179.4]) by mail.alpinelinux.org (Postfix) with ESMTP id 353DCDC00BD for ; Thu, 22 Nov 2012 17:23:41 +0000 (UTC) Received: from w00tw00t.home.evil-packet.org (unknown [80.83.179.32]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.bett.ag (Postfix) with ESMTPSA id 386A41C087 for ; Thu, 22 Nov 2012 18:06:28 +0100 (CET) From: Franz Bettag Content-Type: multipart/alternative; boundary="Apple-Mail=_9095344C-F893-4DE7-B50C-4312ACFF1078" Subject: [alpine-devel] Added CFEngine and its dependency tokyocabinet as well as its successor kyotocabinet. Date: Thu, 22 Nov 2012 18:23:39 +0100 Message-Id: To: alpine-devel@lists.alpinelinux.org X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) --Apple-Mail=_9095344C-F893-4DE7-B50C-4312ACFF1078 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Franz ---- Black Belt DevOp, Lift Committer and CEO. Twitter: http://twitter.com/fbettag GitHub: http://github.com/fbettag Personal: http://www.uberblo.gs Business: http://www.bett.ag --Apple-Mail=_9095344C-F893-4DE7-B50C-4312ACFF1078 Content-Type: multipart/mixed; boundary="Apple-Mail=_FDC4409B-A961-4501-8711-3ACD1982975C" --Apple-Mail=_FDC4409B-A961-4501-8711-3ACD1982975C Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii --Apple-Mail=_FDC4409B-A961-4501-8711-3ACD1982975C Content-Disposition: attachment; filename=wasted-aports.patch Content-Type: application/octet-stream; name="wasted-aports.patch" Content-Transfer-Encoding: 7bit diff --git a/testing/cfengine/APKBUILD b/testing/cfengine/APKBUILD new file mode 100644 index 0000000..8b632b3 --- /dev/null +++ b/testing/cfengine/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Franz Bettag +# Maintainer: +pkgname=cfengine +pkgver=3.3.8 +pkgrel=0 +pkgdesc="CFEngine Configuration Management" +url="http://cfengine.com/" +arch="all" +license="GPLv3" +depends="" +makedepends="tokyocabinet openssl-dev pcre-dev" +options="libtool" +install="" +subpackages="" +source="http://cfengine.com/source-code/download?file=$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $( pwd )/../../*; do + case $i in + *.patch) msg $i; patch -p1 -i $i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure || return 1 + + make all || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="ba585e8ba6c40c7bbd624ec2271898aa download?file=cfengine-3.3.8.tar.gz" diff --git a/testing/cfengine/alpinelinux.patch b/testing/cfengine/alpinelinux.patch new file mode 100644 index 0000000..45c4994 --- /dev/null +++ b/testing/cfengine/alpinelinux.patch @@ -0,0 +1,71 @@ +--- cfengine-3.3.8/masterfiles/cfengine_stdlib.cf ++++ cfengine-3.3.8-alpine/masterfiles/cfengine_stdlib.cf +@@ -1647,6 +1647,31 @@ + + ## + ++body package_method alpinelinux ++{ ++ package_changes => "individual"; ++ ++ package_list_command => "/sbin/apk info -v"; ++ ++ # Remember to escape special characters like | ++ ++ package_list_name_regex => "([^\s]+)-.*"; ++ package_list_version_regex => "[^\s]+-([^\s]+).*"; ++ ++ package_name_regex => "([^\s]+)-.*"; ++ package_version_regex => "[^\s]+-([^\s]+).*"; ++ ++ package_installed_regex => ".*"; ++ ++ package_name_convention => "$(name)-$(version)"; ++ ++ ++package_add_command => "/sbin/apk add"; ++package_delete_command => "/sbin/apk del"; ++} ++ ++## ++ + # Single bundle for all the similar managers simplifies promises + + body package_method generic +@@ -1741,6 +1766,21 @@ + package_name_convention => "$(name)-$(version)"; + package_add_command => "/usr/sbin/pkg_add -r"; + package_delete_command => "/usr/sbin/pkg_delete"; ++ ++alpinelinux:: ++ package_changes => "individual"; ++ package_list_command => "/sbin/apk info -v"; ++ package_list_name_regex => "([^\s]+)-.*"; ++ package_list_version_regex => "[^\s]+-([^\s]+).*"; ++ package_name_regex => "([^\s]+)-.*"; ++ package_version_regex => "[^\s]+-([^\s]+).*"; ++ package_installed_regex => ".*"; ++ package_name_convention => "$(name)-$(version)"; ++ package_add_command => "/sbin/apk add"; ++ package_delete_command => "/sbin/apk del"; ++} ++ ++ + } + + ## +--- cfengine-3.3.8/src/sysinfo.c ++++ cfengine-3.3.8-alpine/src/sysinfo.c +@@ -783,6 +783,12 @@ + NewClass("UnitedLinux"); + } + ++ if (cfstat("/etc/alpine-release", &statbuf) != -1) ++ { ++ CfOut(cf_verbose, "", "This appears to be an AlpineLinux system.\n"); ++ NewClass("alpinelinux"); ++ } ++ + if (cfstat("/etc/gentoo-release", &statbuf) != -1) + { + CfOut(cf_verbose, "", "This appears to be a gentoo system.\n"); diff --git a/testing/kyotocabinet/APKBUILD b/testing/kyotocabinet/APKBUILD new file mode 100644 index 0000000..616c738 --- /dev/null +++ b/testing/kyotocabinet/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Franz Bettag +# Maintainer: +pkgname=kyotocabinet +pkgver=1.2.76 +pkgrel=0 +pkgdesc="GDBM, QDBM and Tokyo Cabinet successor" +url="http://falllabs.com/kyotocabinet" +arch="all" +license="GPLv3" +depends="" +makedepends="zlib-dev" +install="" +subpackages="" +source="http://fallabs.com/$pkgname/pkg/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + LDFLAGS="-lpthread" ./configure --prefix /usr || return 1 + + make all || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="b925d369d7ed4a37cf0013409046738c kyotocabinet-1.2.76.tar.gz" diff --git a/testing/tokyocabinet/APKBUILD b/testing/tokyocabinet/APKBUILD new file mode 100644 index 0000000..738ceb5 --- /dev/null +++ b/testing/tokyocabinet/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Franz Bettag +# Maintainer: +pkgname=tokyocabinet +pkgver=1.4.48 +pkgrel=0 +pkgdesc="GDBM and QDBM successor" +url="http://falllabs.com/tokyocabinet" +arch="all" +license="LGPL" +depends="" +makedepends="zlib-dev bzip2-dev" +install="" +subpackages="" +source="http://fallabs.com/$pkgname/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + LDFLAGS="-lpthread" ./configure --prefix /usr || return 1 + + make all || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="fd03df6965f8f56dd5b8518ca43b4f5e tokyocabinet-1.4.48.tar.gz" --Apple-Mail=_FDC4409B-A961-4501-8711-3ACD1982975C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

http://twitter.com/fbettag
GitH= ub: http://github.com/fbettag
Person= al: http://www.uberblo.gs
Business: = ;http://www.bett.ag

= --Apple-Mail=_FDC4409B-A961-4501-8711-3ACD1982975C-- --Apple-Mail=_9095344C-F893-4DE7-B50C-4312ACFF1078-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---