summaryrefslogtreecommitdiff
path: root/community/tls
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/tls
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/tls')
-rw-r--r--community/tls/PKGBUILD25
-rw-r--r--community/tls/tls.patch28
2 files changed, 53 insertions, 0 deletions
diff --git a/community/tls/PKGBUILD b/community/tls/PKGBUILD
new file mode 100644
index 000000000..426ddcfd7
--- /dev/null
+++ b/community/tls/PKGBUILD
@@ -0,0 +1,25 @@
+# $Id: PKGBUILD 14340 2010-04-02 23:21:39Z foutrelis $
+# Maintainer: Sergej Pupykin <pupykin.s@gmail.com>
+# Contributor: Mario Vazquez <mariovazq@gmail.com>
+
+pkgname=tls
+pkgver=1.6
+pkgrel=3
+pkgdesc="OpenSSL extension to Tcl"
+arch=('i686' 'x86_64')
+url="http://tls.sourceforge.net/"
+license=('GPL')
+depends=('tcl' 'openssl' 'awk')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname$pkgver-src.tar.gz)
+md5sums=('eb326ff9e6fc3b9885aa5c72fb8df3bf')
+
+build() {
+ cd $startdir/src/tls$pkgver
+
+ ./configure --prefix=/usr --with-ssl-dir=/usr
+ make || return 1
+ make test | awk '{print}/FAILED/{F=1}END{if(F)exit 1}'
+ make DESTDIR=$startdir/pkg install || return 1
+# sed -i 's|ifneeded tls 1.5|ifneeded tls 1.50|' $startdir/pkg/usr/lib/tls1.50/pkgIndex.tcl
+ ln -s tls1.6/libtls1.6.so $pkgdir/usr/lib/libtls1.6.so
+}
diff --git a/community/tls/tls.patch b/community/tls/tls.patch
new file mode 100644
index 000000000..46e70439f
--- /dev/null
+++ b/community/tls/tls.patch
@@ -0,0 +1,28 @@
+--- Makefile.in
++++ Makefile.in
+@@ -208,20 +208,20 @@
+ sed -e "s#\@RELPATH\@#$(RELPATH)#" \
+ -e "s#\@tls_LIB_FILE\@#$(tls_LIB_FILE)#" \
+ < $(srcdir)/pkgIndex.tcl.in > pkgIndex.tcl
+- $(INSTALL_DATA) pkgIndex.tcl $(pkglibdir)
++ $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)
+
+ #========================================================================
+ # This rule installs platform-independent files, such as header files.
+ #========================================================================
+
+ install-libraries: libraries
+- $(mkinstalldirs) $(includedir)
+- @echo "Installing header files in $(includedir)"
++ $(mkinstalldirs) $(DESTDIR)$(includedir)
++ @echo "Installing header files in $(DESTDIR)$(includedir)"
+ @for i in $(GENERIC_HDRS) ; do \
+ echo "Installing $$i" ; \
+- $(INSTALL_DATA) $$i $(includedir) ; \
++ $(INSTALL_DATA) $$i $(DESTDIR)$(includedir) ; \
+ done;
+- $(INSTALL_DATA) $(srcdir)/tls.tcl $(pkglibdir)
++ $(INSTALL_DATA) $(srcdir)/tls.tcl $(DESTDIR)$(pkglibdir)
+
+ #========================================================================
+ # Install documentation. Unix manpages should go in the $(mandir)