summaryrefslogtreecommitdiff
path: root/social
diff options
context:
space:
mode:
Diffstat (limited to 'social')
-rw-r--r--social/lua-cyrussasl/PKGBUILD34
-rw-r--r--social/lua-cyrussasl/lua-cyrussasl.patch37
-rw-r--r--social/lua-ldap/PKGBUILD29
-rw-r--r--social/opentracker/opentracker.install17
-rw-r--r--social/squirm/PKGBUILD32
5 files changed, 149 insertions, 0 deletions
diff --git a/social/lua-cyrussasl/PKGBUILD b/social/lua-cyrussasl/PKGBUILD
new file mode 100644
index 000000000..d37eacc1c
--- /dev/null
+++ b/social/lua-cyrussasl/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Dwayne Bent <dbb.1@liqd.org>
+
+pkgname=lua-cyrussasl
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Lua bindings for Cyrus SASL library."
+arch=('i686' 'x86_64' 'mips64el')
+url="http://github.com/JorjBauer/lua-cyrussasl"
+license=('BSD')
+depends=('lua>=5.1' 'libsasl')
+source=(
+ "lua-cyrussasl-$pkgver.tar.gz::https://github.com/JorjBauer/lua-cyrussasl/tarball/v$pkgver"
+ "lua-cyrussasl.patch"
+)
+md5sums=('40c94c06441e1e47640d81b125742969'
+ '5b5c15e4cba63d05a5bfd1cc3ddcba0f')
+
+build() {
+ cd $srcdir/*-lua-cyrussasl-*
+
+ patch -p1 < "$srcdir/lua-cyrussasl.patch"
+ make
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/lib/lua/5.1"
+ mkdir -p "$pkgdir/usr/share/licenses/lua-cyrussasl"
+
+ cd $srcdir/*-lua-cyrussasl-*
+
+ make DESTDIR=${pkgdir} install
+ install -m644 "LICENSE" "$pkgdir/usr/share/licenses/lua-cyrussasl/LICENSE"
+}
+
diff --git a/social/lua-cyrussasl/lua-cyrussasl.patch b/social/lua-cyrussasl/lua-cyrussasl.patch
new file mode 100644
index 000000000..5309e5af1
--- /dev/null
+++ b/social/lua-cyrussasl/lua-cyrussasl.patch
@@ -0,0 +1,37 @@
+diff --git a/Makefile b/Makefile
+index 9c696ab..37057da 100644
+--- a/Makefile
++++ b/Makefile
+@@ -4,12 +4,18 @@
+ #LUAPATH=/usr/share/lua/5.1
+ #CPATH=/usr/lib/lua/5.1
+
++# Linux (Arch Linux)
++CFLAGS=-g -O2 -fpic -I/usr/include
++LDFLAGS=-O -shared -fpic -lsasl2
++LUAPATH=/usr/share/lua/5.1
++CPATH=/usr/lib/lua/5.1
++
+ # MacOS
+-CFLAGS=-g -Wall -O2
+-LDFLAGS=-bundle -undefined dynamic_lookup -lsasl2
+-MACOSX_VERSION=10.5
+-LUAPATH=/usr/local/share/lua/5.1
+-CPATH=/usr/local/lib/lua/5.1
++#CFLAGS=-g -Wall -O2
++#LDFLAGS=-bundle -undefined dynamic_lookup -lsasl2
++#MACOSX_VERSION=10.5
++#LUAPATH=/usr/local/share/lua/5.1
++#CPATH=/usr/local/lib/lua/5.1
+
+ #########################################################
+ #
+@@ -26,7 +32,7 @@ OBJS=cyrussasl.o luaabstract.o context.o
+ all: $(TARGET)
+
+ install: $(TARGET)
+- cp $(TARGET) $(CPATH)
++ cp $(TARGET) $(DESTDIR)$(CPATH)
+
+ clean:
+ rm -f *.o *.so *~
diff --git a/social/lua-ldap/PKGBUILD b/social/lua-ldap/PKGBUILD
new file mode 100644
index 000000000..a2ca1c830
--- /dev/null
+++ b/social/lua-ldap/PKGBUILD
@@ -0,0 +1,29 @@
+pkgname=lua-ldap
+_pkgname=lualdap
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Simple interface from Lua to an LDAP client"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.keplerproject.org/lualdap"
+license=('BSD')
+depends=('lua' 'libldap')
+source=(http://files.luaforge.net/releases/$_pkgname/$_pkgname/LuaLDAP$pkgver/$_pkgname-$pkgver.tar.gz)
+
+build() {
+ cd $srcdir/$_pkgname-$pkgver
+
+ make CFLAGS="$CFLAGS" \
+ LUA_LIBDIR=/usr/lib/lua/5.1 \
+ LUA_VERSION_NUM=510 \
+ LUA_INC=/usr/include
+
+}
+
+package() {
+ cd $srcdir/$_pkgname-$pkgver
+ make LUA_LIBDIR=${pkgdir}/usr/lib/lua/5.1 \
+ LUA_VERSION_NUM=510 \
+ install
+}
+
+md5sums=('5e104520c3f1333f38817a9fa1e76681')
diff --git a/social/opentracker/opentracker.install b/social/opentracker/opentracker.install
new file mode 100644
index 000000000..59f6f6ebe
--- /dev/null
+++ b/social/opentracker/opentracker.install
@@ -0,0 +1,17 @@
+post_install() {
+ cat <<EOM
+
+ Please be aware this package is built without accesslist support. Any
+ torrent announced to it will be tracked.
+
+ If you want this features you'll have to rebuild this package. There're
+ instructions on the PKGBUILD.
+
+ For more info check: http://erdgeist.org/arts/software/opentracker/
+
+EOM
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/social/squirm/PKGBUILD b/social/squirm/PKGBUILD
new file mode 100644
index 000000000..da3a6d372
--- /dev/null
+++ b/social/squirm/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Spider.007 <archPackage@spider007.net>
+# Contributor: Spider.007 <archPackage@spider007.net>
+pkgname=squirm
+pkgver=1.26
+pkgrel=1
+pkgdesc="Fast & configurable proxy redirector"
+url="http://squirm.foote.com.au/"
+source=("$url/$pkgname-$pkgver.tgz")
+md5sums=('54ac1d208620ec1e4419f97315d38848')
+license=('GPL2')
+arch=('i686' 'x86_64' 'mips64el')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ make PREFIX=/usr
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+
+# make install uses a weird prefix
+ install -d $pkgdir/etc/squirm $pkgdir/var/log/squirm
+ install -Dm755 squirm $pkgdir/usr/bin/squirm
+ install -m644 squirm.conf.dist $pkgdir/etc/squirm/squirm.conf
+ install -m644 squirm.patterns.dist $pkgdir/etc/squirm/squirm.patterns
+
+# use absolute path files
+ sed -e "s,logs,/var/log/squirm,g" \
+ -e "s,pattern ,& /etc/squirm/,g" \
+ -i $pkgdir/etc/squirm/squirm.conf
+}