X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-ea0-f175.google.com (mail-ea0-f175.google.com [209.85.215.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id EED37DC0102 for ; Wed, 16 Jan 2013 08:20:01 +0000 (UTC) Received: by mail-ea0-f175.google.com with SMTP id d1so394206eab.34 for ; Wed, 16 Jan 2013 00:20:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:subject:date:message-id:to :mime-version:x-mailer; bh=ApP+XLfRJA0Q5tdqzRVlgMs4HfZSA3rhoAWRk9u/67Y=; b=RaMCWhGowkodw1kB60vXlPBgx1Qi0zluaxxH3klruchACPzha14fXrev8mvpIdoeYO UpcsWD9h7mG0f/QzYpw65HLw+/ywQ3fLiPBvOY+VQcmTJqCEiBnYUgFNx6gVs3XeJ9Vm zOE/aY8qE4qxGJWytN23e4ib+6AjbMOAeIDnrFXIgKO/Q9TOMQw2/wn4/BYnqF5nK8/M tCrnMZ18Spit4O1A+zwwL9u3zfrCSFOMzyy0zIa/IVyUqkRf2K1hXPVeyo+V57hHi6E8 TiL5Wl1sJoFSgCZ1a5x/AqkCBpMdwQOnN16X2BOwCK1jB2D1dwrsn2kozPYhzYZSMwB6 EXzw== X-Received: by 10.14.194.199 with SMTP id m47mr892948een.11.1358324400133; Wed, 16 Jan 2013 00:20:00 -0800 (PST) Received: from [172.16.50.10] ([81.21.170.84]) by mx.google.com with ESMTPS id w3sm28570583eel.17.2013.01.16.00.19.58 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Jan 2013 00:19:59 -0800 (PST) From: Florian Heigl Content-Type: multipart/mixed; boundary="Apple-Mail=_10230733-E9C4-4586-8F5E-802A61E3304A" Subject: [alpine-devel] Patch for testing/cfengine Date: Wed, 16 Jan 2013 10:19:57 +0200 Message-Id: <1005FC88-B8C3-4A87-86F5-6CEF33D34C2B@gmail.com> 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 v1283) X-Mailer: Apple Mail (2.1283) --Apple-Mail=_10230733-E9C4-4586-8F5E-802A61E3304A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, Attached is a patch that apparently got lost when the author sent it = here, or maybe he forgot to send. I've tested it and it builds without problems.=20 It comes with two other packages it depends on that do some strange = REDIS things I know nothing about. --Apple-Mail=_10230733-E9C4-4586-8F5E-802A61E3304A Content-Disposition: attachment; filename=cfengine.patch Content-Type: application/octet-stream; name="cfengine.patch" Content-Transfer-Encoding: 7bit diff --git a/testing/cfengine/APKBUILD b/testing/cfengine/APKBUILD new file mode 100644 index 0000000..2af4a71 --- /dev/null +++ b/testing/cfengine/APKBUILD @@ -0,0 +1,41 @@ +# 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" +#makedepends="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=_10230733-E9C4-4586-8F5E-802A61E3304A Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_10230733-E9C4-4586-8F5E-802A61E3304A-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---