From f8a7b7e15c9c97a3975e265a5c6c46ea96d1ce79 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Sat, 5 Dec 2009 16:27:15 +0000 Subject: dir vor pkging --- arch-linux/PKGBUILD | 46 ---------------------------------------- arch-linux/anytun.install | 20 ----------------- arch-linux/anytun/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++ arch-linux/anytun/anytun.install | 20 +++++++++++++++++ arch-linux/anytun/boost-mt.patch | 22 +++++++++++++++++++ arch-linux/boost-mt.patch | 22 ------------------- 6 files changed, 88 insertions(+), 88 deletions(-) delete mode 100644 arch-linux/PKGBUILD delete mode 100644 arch-linux/anytun.install create mode 100644 arch-linux/anytun/PKGBUILD create mode 100644 arch-linux/anytun/anytun.install create mode 100644 arch-linux/anytun/boost-mt.patch delete mode 100644 arch-linux/boost-mt.patch (limited to 'arch-linux') diff --git a/arch-linux/PKGBUILD b/arch-linux/PKGBUILD deleted file mode 100644 index 58d91d8..0000000 --- a/arch-linux/PKGBUILD +++ /dev/null @@ -1,46 +0,0 @@ -# Contributor: Bernhard Tittelbach -pkgname="anytun" -pkgver="0.3.1" -pkgrel=1 -pkgdesc="secure anycast tunneling protocol implementation with openvpn style interface" -arch=("i686" "x86_64") -url="http://www.anytun.org/" -license=('GPLv3') -groups=() -depends=(boost openssl glibc) -#depends=(boost libgcrypt glibc) -makedepends=(make asciidoc gcc) -provides=() -conflicts=() -replaces=() -backup=("/etc/anytun/autostart") -options=(docs zipman ccache distcc) -install=anytun.install -source=("http://www.anytun.org/~equinox/$pkgname-$pkgver.tar.gz" "boost-mt.patch") -noextract=() -md5sums=('a72d47110aa9f8cb42d5fe726a237bd0' - 'bc8713a0228af46f7692a85e77927871') - -build() { - cd "$srcdir/$pkgname-$pkgver/src" || return 1 - patch -p0 < ${srcdir}/boost-mt.patch || return 1 - ./configure --use-ssl-crypto || return 1 # use libssl - #./configure || return 1 # use libgcrypt - make || return 1 - #make manpage || return 1 - #make anyrtpproxy || return 1 - mkdir -p ${pkgdir}/usr/sbin ${pkgdir}/usr/bin \ - ${pkgdir}/var/run/anytun ${pkgdir}/var/run/anytun-controld \ - ${pkgdir}/etc/anytun ${pkgdir}/etc/rc.d/ \ - ${pkgdir}/usr/share/$pkgname-$pkgver/etc-example/ - cp anytun ${pkgdir}/usr/sbin/ - cp anytun-config anytun-controld anytun-nosync anytun-showtables ${pkgdir}/usr/bin/ - #touch ${pkgdir}/var/run/anytun/.keep ${pkgdir}/var/run/anytun-controld/.keep - cp $srcdir/$pkgname-$pkgver/etc/init.d/anytun ${pkgdir}/etc/rc.d/ - cp -R $srcdir/$pkgname-$pkgver/etc/anytun ${pkgdir}/usr/share/$pkgname-$pkgver/etc-example/ - cp $srcdir/$pkgname-$pkgver/etc/anytun/autostart ${pkgdir}/etc/anytun/ - cp -R ../wireshark-lua ${pkgdir}/usr/share/$pkgname-$pkgver/ -} - - - diff --git a/arch-linux/anytun.install b/arch-linux/anytun.install deleted file mode 100644 index 9715198..0000000 --- a/arch-linux/anytun.install +++ /dev/null @@ -1,20 +0,0 @@ -post_install() { - echo "" - echo "===============================================================================" - echo "Don't forget to create configuration directories unter /etc/anytun/" - echo "and to add them to /etc/anytun/autostart" - echo "You will find example configuration files in /usr/share/anytun-$1/etc-example/" - echo "" - echo "You can disect anytun traffic using wireshark by plugging the script" - echo " /usr/share/anytun-$1/wireshark-lua/satp.lua into wireshark" - echo "===============================================================================" - echo "" -} - -post_upgrade() { - return 0 -} - -pre_remove() { - /etc/rc.d/anytun stop -} diff --git a/arch-linux/anytun/PKGBUILD b/arch-linux/anytun/PKGBUILD new file mode 100644 index 0000000..58d91d8 --- /dev/null +++ b/arch-linux/anytun/PKGBUILD @@ -0,0 +1,46 @@ +# Contributor: Bernhard Tittelbach +pkgname="anytun" +pkgver="0.3.1" +pkgrel=1 +pkgdesc="secure anycast tunneling protocol implementation with openvpn style interface" +arch=("i686" "x86_64") +url="http://www.anytun.org/" +license=('GPLv3') +groups=() +depends=(boost openssl glibc) +#depends=(boost libgcrypt glibc) +makedepends=(make asciidoc gcc) +provides=() +conflicts=() +replaces=() +backup=("/etc/anytun/autostart") +options=(docs zipman ccache distcc) +install=anytun.install +source=("http://www.anytun.org/~equinox/$pkgname-$pkgver.tar.gz" "boost-mt.patch") +noextract=() +md5sums=('a72d47110aa9f8cb42d5fe726a237bd0' + 'bc8713a0228af46f7692a85e77927871') + +build() { + cd "$srcdir/$pkgname-$pkgver/src" || return 1 + patch -p0 < ${srcdir}/boost-mt.patch || return 1 + ./configure --use-ssl-crypto || return 1 # use libssl + #./configure || return 1 # use libgcrypt + make || return 1 + #make manpage || return 1 + #make anyrtpproxy || return 1 + mkdir -p ${pkgdir}/usr/sbin ${pkgdir}/usr/bin \ + ${pkgdir}/var/run/anytun ${pkgdir}/var/run/anytun-controld \ + ${pkgdir}/etc/anytun ${pkgdir}/etc/rc.d/ \ + ${pkgdir}/usr/share/$pkgname-$pkgver/etc-example/ + cp anytun ${pkgdir}/usr/sbin/ + cp anytun-config anytun-controld anytun-nosync anytun-showtables ${pkgdir}/usr/bin/ + #touch ${pkgdir}/var/run/anytun/.keep ${pkgdir}/var/run/anytun-controld/.keep + cp $srcdir/$pkgname-$pkgver/etc/init.d/anytun ${pkgdir}/etc/rc.d/ + cp -R $srcdir/$pkgname-$pkgver/etc/anytun ${pkgdir}/usr/share/$pkgname-$pkgver/etc-example/ + cp $srcdir/$pkgname-$pkgver/etc/anytun/autostart ${pkgdir}/etc/anytun/ + cp -R ../wireshark-lua ${pkgdir}/usr/share/$pkgname-$pkgver/ +} + + + diff --git a/arch-linux/anytun/anytun.install b/arch-linux/anytun/anytun.install new file mode 100644 index 0000000..9715198 --- /dev/null +++ b/arch-linux/anytun/anytun.install @@ -0,0 +1,20 @@ +post_install() { + echo "" + echo "===============================================================================" + echo "Don't forget to create configuration directories unter /etc/anytun/" + echo "and to add them to /etc/anytun/autostart" + echo "You will find example configuration files in /usr/share/anytun-$1/etc-example/" + echo "" + echo "You can disect anytun traffic using wireshark by plugging the script" + echo " /usr/share/anytun-$1/wireshark-lua/satp.lua into wireshark" + echo "===============================================================================" + echo "" +} + +post_upgrade() { + return 0 +} + +pre_remove() { + /etc/rc.d/anytun stop +} diff --git a/arch-linux/anytun/boost-mt.patch b/arch-linux/anytun/boost-mt.patch new file mode 100644 index 0000000..b3f6f9e --- /dev/null +++ b/arch-linux/anytun/boost-mt.patch @@ -0,0 +1,22 @@ +--- ../../orig/anytun-0.3.1/src/configure 2009-10-29 01:29:31.000000000 +0100 ++++ configure 2009-10-30 23:54:00.427183812 +0100 +@@ -34,7 +34,7 @@ + TARGET=`uname -s` + + CXXFLAGS='-g -Wall -O2 -DLOG_SYSLOG -DLOG_FILE -DLOG_STDOUT' +-LDFLAGS='-g -Wall -O2 -lboost_thread -lboost_serialization -lboost_system -lboost_date_time' ++LDFLAGS='-g -Wall -O2 -lboost_thread-mt -lboost_serialization -lboost_system -lboost_date_time' + + CRYPTO_LIB='gcrypt' + PASSPHRASE=1 +--- ../../orig/anytun-0.3.1/src/anyrtpproxy/Makefile 2009-10-29 01:29:31.000000000 +0100 ++++ anyrtpproxy/Makefile 2009-10-30 23:54:07.031174716 +0100 +@@ -34,7 +34,7 @@ + CXX = g++ + CXXFLAGS = -g -Wall + LD = g++ +-LDFLAGS = -g -Wall -O2 -lboost_thread -lboost_serialization -lboost_system ++LDFLAGS = -g -Wall -O2 -lboost_thread-mt -lboost_serialization -lboost_system + + OBJS = anyrtpproxy.o \ + ../signalController.o \ diff --git a/arch-linux/boost-mt.patch b/arch-linux/boost-mt.patch deleted file mode 100644 index b3f6f9e..0000000 --- a/arch-linux/boost-mt.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- ../../orig/anytun-0.3.1/src/configure 2009-10-29 01:29:31.000000000 +0100 -+++ configure 2009-10-30 23:54:00.427183812 +0100 -@@ -34,7 +34,7 @@ - TARGET=`uname -s` - - CXXFLAGS='-g -Wall -O2 -DLOG_SYSLOG -DLOG_FILE -DLOG_STDOUT' --LDFLAGS='-g -Wall -O2 -lboost_thread -lboost_serialization -lboost_system -lboost_date_time' -+LDFLAGS='-g -Wall -O2 -lboost_thread-mt -lboost_serialization -lboost_system -lboost_date_time' - - CRYPTO_LIB='gcrypt' - PASSPHRASE=1 ---- ../../orig/anytun-0.3.1/src/anyrtpproxy/Makefile 2009-10-29 01:29:31.000000000 +0100 -+++ anyrtpproxy/Makefile 2009-10-30 23:54:07.031174716 +0100 -@@ -34,7 +34,7 @@ - CXX = g++ - CXXFLAGS = -g -Wall - LD = g++ --LDFLAGS = -g -Wall -O2 -lboost_thread -lboost_serialization -lboost_system -+LDFLAGS = -g -Wall -O2 -lboost_thread-mt -lboost_serialization -lboost_system - - OBJS = anyrtpproxy.o \ - ../signalController.o \ -- cgit v1.2.3