summaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-31 00:03:48 +0000
committerroot <root@rshg054.dnsready.net>2012-05-31 00:03:48 +0000
commitf1ae949e08a764ac063703dc9bb7f0afd7c16e96 (patch)
treeb542ace0cdaf945c5e495f31e3c87537017c614d /community
parentf676c2f568b9c75daa3e2b688978b877f950953d (diff)
Thu May 31 00:03:48 UTC 2012
Diffstat (limited to 'community')
-rw-r--r--community/ecryptfs-utils/PKGBUILD12
-rw-r--r--community/ecryptfs-utils/symlinked_mtab.patch25
-rw-r--r--community/kpartsplugin/PKGBUILD6
-rw-r--r--community/mosh/PKGBUILD6
-rw-r--r--community/oolite/PKGBUILD10
-rw-r--r--community/opendkim/PKGBUILD58
-rw-r--r--community/opendkim/opendkim.conf1
-rw-r--r--community/opendkim/opendkim.install11
-rw-r--r--community/opendkim/opendkim.rc39
9 files changed, 153 insertions, 15 deletions
diff --git a/community/ecryptfs-utils/PKGBUILD b/community/ecryptfs-utils/PKGBUILD
index 8cd135b78..f6fbf591c 100644
--- a/community/ecryptfs-utils/PKGBUILD
+++ b/community/ecryptfs-utils/PKGBUILD
@@ -1,24 +1,28 @@
-# $Id: PKGBUILD 70347 2012-05-04 23:54:39Z allan $
+# $Id: PKGBUILD 71565 2012-05-29 11:01:34Z tredaelli $
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Richard Murri <admin@richardmurri.com>
# Contributor: Michal Krenek <mikos@sg1.cz>
pkgname=ecryptfs-utils
pkgver=96
-pkgrel=2
+pkgrel=3
arch=('i686' 'x86_64')
pkgdesc="Enterprise-class stacked cryptographic filesystem for Linux"
url="https://launchpad.net/ecryptfs"
license=('GPL')
makedepends=('swig' 'intltool' 'gettext')
depends=('keyutils' 'nss' 'python2')
-source=("http://launchpad.net/ecryptfs/trunk/${pkgver}/+download/${pkgname}_${pkgver}.orig.tar.gz")
+source=("http://launchpad.net/ecryptfs/trunk/${pkgver}/+download/${pkgname}_${pkgver}.orig.tar.gz"
+ symlinked_mtab.patch)
options=(!libtool)
-md5sums=('4f92c9f6e8f62ac00ca7e2c4e480f1d7')
+md5sums=('4f92c9f6e8f62ac00ca7e2c4e480f1d7'
+ '7740ed69601cfc75bb96c9ad072dfdb4')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
./configure --prefix=/usr --with-pamdir=/usr/lib/security PYTHON=python2
+ # Apply patch to detect if /etc/mtab is a symlink.
+ patch src/libecryptfs/main.c < "$srcdir/symlinked_mtab.patch"
make
}
diff --git a/community/ecryptfs-utils/symlinked_mtab.patch b/community/ecryptfs-utils/symlinked_mtab.patch
new file mode 100644
index 000000000..2ba0aa8bf
--- /dev/null
+++ b/community/ecryptfs-utils/symlinked_mtab.patch
@@ -0,0 +1,25 @@
+--- ecryptfs-utils/src/ecryptfs-utils-96/src/libecryptfs/main.c.orig
++++ ecryptfs-utils/src/ecryptfs-utils-96/src/libecryptfs/main.c
+@@ -387,6 +387,8 @@
+ char *fullpath_source = NULL;
+ char *fullpath_target = NULL;
+ int rc;
++ char dummy;
++ int useMtab;
+
+ mountent.mnt_opts = NULL;
+ if (!source) {
+@@ -425,6 +427,13 @@
+ syslog(LOG_ERR, "Failed to perform eCryptfs mount: [%m]\n");
+ goto out;
+ }
++ /* Check if mtab is a symlink */
++ useMtab = (readlink("/etc/mtab", &dummy, 1) < 0);
++ if (!useMtab) {
++ /* No need updating mtab */
++ rc = 0;
++ goto out;
++ }
+ mtab_fd = setmntent("/etc/mtab", "a");
+ if (!mtab_fd) {
+ rc = -EACCES;
diff --git a/community/kpartsplugin/PKGBUILD b/community/kpartsplugin/PKGBUILD
index 13f9135c8..3f5ee42c5 100644
--- a/community/kpartsplugin/PKGBUILD
+++ b/community/kpartsplugin/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 69899 2012-04-25 21:22:15Z tredaelli $
+# $Id: PKGBUILD 71563 2012-05-29 10:50:53Z tredaelli $
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: birdflesh <antkoul at gmail dot com>
# Contributor: Frikilinux <frikilinux at frikilinux.com.ar>
pkgname=kpartsplugin
-pkgver=20120422
+pkgver=20120524
pkgrel=1
pkgdesc="This plugin uses KDE's KParts to embed file viewers into non-KDE browsers"
arch=('i686' 'x86_64')
@@ -12,7 +12,7 @@ license=('GPL3' 'BSD')
depends=('kdelibs')
makedepends=('automoc4' 'cmake')
source=("${url}${pkgname}-${pkgver}.tar.bz2" "LICENSE")
-md5sums=('6f1126a5f9a84374b14d99086a935026'
+md5sums=('14aaeb172e6519c7a06f22ec7ca3e39e'
'c4cc811349e40e9f34e77e27b902ad96')
build(){
diff --git a/community/mosh/PKGBUILD b/community/mosh/PKGBUILD
index 49a766641..55e108379 100644
--- a/community/mosh/PKGBUILD
+++ b/community/mosh/PKGBUILD
@@ -4,7 +4,7 @@
# Contributor: Thomas Weißschuh <thomas_weissschuh lavabit.com>
pkgname=mosh
-pkgver=1.2
+pkgver=1.2.1
pkgrel=1
pkgdesc='Mobile shell, surviving disconnects with local echo and line editing'
arch=('x86_64' 'i686')
@@ -12,9 +12,9 @@ url="http://mosh.mit.edu/"
license=('GPL3')
depends=('protobuf' 'ncurses' 'zlib' 'openssh' 'perl' 'perl-io-tty')
#optdepends=('libutempter: record of session in {u,t}wmp (recompile mosh afterwards)')
-conflicts=('mosh-git')
source=("$pkgname-$pkgver.tgz::https://nodeload.github.com/keithw/mosh/tarball/master")
-sha1sums=('690e301560808f13a8a7b19bd7740d81fecac262')
+sha1sums=('8fd1697ca1fcfdf546fc40f67bf41fe4f8e6bd74')
+options=('!emptydirs')
build() {
cd "$srcdir/keithw-mosh-"*
diff --git a/community/oolite/PKGBUILD b/community/oolite/PKGBUILD
index 24784f152..4e50bdb7d 100644
--- a/community/oolite/PKGBUILD
+++ b/community/oolite/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 68947 2012-04-06 12:17:32Z svenstaro $
+# $Id: PKGBUILD 71561 2012-05-29 10:35:05Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Lone_Wolf <lonewolf@xs4all.nl>
pkgname=oolite
-pkgver=1.76
-pkgrel=4
+pkgver=1.76.1
+pkgrel=1
pkgdesc="A space-sim based on the classic Elite"
arch=('i686' 'x86_64')
url="http://oolite-linux.berlios.de"
@@ -12,9 +12,9 @@ depends=('gnustep-gui' 'sdl_mixer' 'mesa' 'espeak' 'nspr' 'python2' 'icu')
makedepends=('gcc-objc' 'gnustep-make' 'curl' 'zip')
options=(!makeflags)
source=(oolite
- http://downloads.sourceforge.net/oolite-linux.berlios/oolite-source-$pkgver.tar.bz2)
+ http://download.berlios.de/oolite-linux/oolite-source-${pkgver}.tar.bz2)
md5sums=('b182976fade9b64a3b3702e2a8c72bf0'
- 'd540486facd8275dc6bceebae8428dce')
+ 'a9ae79f4006a0993a822ca40740f4e67')
build() {
cd $srcdir
diff --git a/community/opendkim/PKGBUILD b/community/opendkim/PKGBUILD
new file mode 100644
index 000000000..bc1001946
--- /dev/null
+++ b/community/opendkim/PKGBUILD
@@ -0,0 +1,58 @@
+# $Id: PKGBUILD 71559 2012-05-29 09:12:52Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Thomas Jost <schnouki@schnouki.net>
+
+pkgname=opendkim
+pkgver=2.5.2
+pkgrel=1
+pkgdesc="An open source implementation of the DKIM sender authentication system. Based on a fork of dkim-milter."
+arch=(i686 x86_64)
+url="http://www.opendkim.org/"
+license=('BSD' 'custom:Sendmail')
+depends=("db" "openssl")
+makedepends=("libmilter")
+options=(!libtool)
+backup=(etc/conf.d/opendkim)
+install=opendkim.install
+source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz
+ opendkim.conf
+ opendkim.rc)
+md5sums=('3c2a71372ee279b627e3f39c87a0d457'
+ '3e2bb1058ac0662f01e675aa6ac7ee8f'
+ '1176f086d36e79a834dba1bed0ded397')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr --with-db
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make check
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+
+ # Sample configuration
+ mkdir -p "$pkgdir/etc/opendkim"
+ mv "$pkgdir/usr/share/doc/opendkim/opendkim.conf.sample" "$pkgdir/etc/opendkim/opendkim.conf.sample"
+ chmod 0700 "$pkgdir/etc/opendkim"
+ chmod 0600 "$pkgdir/etc/opendkim/opendkim.conf.sample"
+
+ # Init script
+ install -Dm644 "$srcdir/opendkim.conf" "$pkgdir/etc/conf.d/opendkim"
+ install -Dm755 "$srcdir/opendkim.rc" "$pkgdir/etc/rc.d/opendkim"
+
+ # Remove empty dirs
+ rmdir "$pkgdir/usr/share/man/man1" "$pkgdir/usr/share/man/man3"
+
+ # License
+ mkdir -p "$pkgdir/usr/share/licenses/opendkim"
+ for f in LICENSE LICENSE.Sendmail; do
+ ln -s ../../doc/opendkim/$f "$pkgdir/usr/share/licenses/opendkim/$f"
+ done
+}
diff --git a/community/opendkim/opendkim.conf b/community/opendkim/opendkim.conf
new file mode 100644
index 000000000..ebe9024e0
--- /dev/null
+++ b/community/opendkim/opendkim.conf
@@ -0,0 +1 @@
+OPENDKIM_FILTER="-x /etc/opendkim/opendkim.conf"
diff --git a/community/opendkim/opendkim.install b/community/opendkim/opendkim.install
new file mode 100644
index 000000000..a1f16f6ca
--- /dev/null
+++ b/community/opendkim/opendkim.install
@@ -0,0 +1,11 @@
+post_install() {
+ useradd -r -g mail -d / opendkim
+ chown -R opendkim:mail etc/opendkim
+ cat <<EOF
+>>> Check and modify /etc/opendkim/opendkim.conf before starting
+EOF
+}
+
+post_remove() {
+ userdel opendkim
+}
diff --git a/community/opendkim/opendkim.rc b/community/opendkim/opendkim.rc
new file mode 100644
index 000000000..a3e0790a7
--- /dev/null
+++ b/community/opendkim/opendkim.rc
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+. /etc/rc.d/functions
+. /etc/conf.d/opendkim
+. /etc/rc.conf
+
+PID=`pidof -o %PPID /usr/sbin/opendkim`
+case "$1" in
+ start)
+ stat_busy "Starting OpenDKIM filter"
+ if [ -z "$PID" ]; then
+ /usr/sbin/opendkim $OPENDKIM_FILTER > /dev/null &
+ fi
+ if [ ! -z "$PID" -o $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon dkim
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping OpenDKIM filter"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon dkim
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0