From 182c7b23d482a680ac140a681128b74c7db058ac Mon Sep 17 00:00:00 2001 From: d3v11 Date: Fri, 28 Oct 2011 19:08:24 -0400 Subject: SpliceX now compiles to true binary --- contrib/splicex/src/make.in | 70 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 contrib/splicex/src/make.in (limited to 'contrib/splicex/src/make.in') diff --git a/contrib/splicex/src/make.in b/contrib/splicex/src/make.in new file mode 100644 index 0000000..455be22 --- /dev/null +++ b/contrib/splicex/src/make.in @@ -0,0 +1,70 @@ +compile: + cython src/splicex.pyx -o build/splicex.c + gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/PYTHON -c build/splicex.c -o build/splicex.o + gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/splicex.o -o build/splicex.so + +install-deb: + make preinstall + mkdir DEBIAN/splicex + mkdir DEBIAN/splicex/DEBIAN + mkdir DEBIAN/splicex/usr + mkdir DEBIAN/splicex/usr/bin + mkdir DEBIAN/splicex/etc + mkdir DEBIAN/splicex/etc/splicex + cp DEBIAN/control DEBIAN/splicex/DEBIAN/control + cp build/splicex DEBIAN/splicex/usr/bin/splicex + cp build/splicex.so /etc/splicex/splicex.so + cp build/splicex-deshadow DEBIAN/splicex/usr/bin/splicex-deshadow + chmod +x DEBIAN/splicex/usr/bin/splicex + chmod +x DEBIAN/splicex/usr/bin/splicex-deshadow + cp src/splicex.list DEBIAN/splicex/etc/splicex/splicex.list + cp src/manual DEBIAN/splicex/etc/splicex/splicex.1 + gzip DEBIAN/splicex/etc/splicex/splicex.1 + cp src/splicex.L DEBIAN/splicex/etc/splicex/splicex.L + cp src/splicex.N DEBIAN/splicex/etc/splicex/splicex.N + cp src/splicex.S DEBIAN/splicex/etc/splicex/splicex.S + cp src/splicex.LN DEBIAN/splicex/etc/splicex/splicex.LN + cp src/splicex.LS DEBIAN/splicex/etc/splicex/splicex.LS + cp src/splicex.NS DEBIAN/splicex/etc/splicex/splicex.NS + cp src/splicex.ALL DEBIAN/splicex/etc/splicex/splicex.ALL + dpkg-deb --build DEBIAN/splicex + dpkg -i DEBIAN/splicex.deb + rm -rf DEBIAN/splicex DEBIAN/splicex.deb + +install: + make preinstall + mkdir /etc/splicex + cp build/splicex /usr/bin/splicex + cp build/splicex.so /etc/splicex/splicex.so + cp build/splicex-deshadow /usr/bin/splicex-deshadow + chmod +x /usr/bin/splicex + chmod +x /usr/bin/splicex-deshadow + cp src/splicex.list /etc/splicex/splicex.list + cp src/manual /etc/splicex/splicex.1 + gzip /etc/splicex/splicex.1 + cp src/splicex.L /etc/splicex/splicex.L + cp src/splicex.N /etc/splicex/splicex.N + cp src/splicex.S /etc/splicex/splicex.S + cp src/splicex.LN /etc/splicex/splicex.LN + cp src/splicex.LS /etc/splicex/splicex.LS + cp src/splicex.NS /etc/splicex/splicex.NS + cp src/splicex.ALL /etc/splicex/splicex.ALL + +uninstall: + rm -rf /etc/splicex + rm -f /usr/bin/splicex + rm -f /usr/bin/splicex-deshadow + +clean: + rm DEBIAN/splicex DEBIAN/*.deb build/* -rf + +preinstall: + rm -rf /etc/splicex + rm -f /usr/bin/splicex + rm -f /usr/bin/splicex-deshadow + rm DEBIAN/splicex DEBIAN/*.deb -rf + +update: + wget http://www.d3v11.ano/splicex.tgz + tar -xvf ../splicex.tgz --directory='../' + rm ../splicex.tgz -- cgit v1.2.3 From 3a840e229d53c4be9b7d24609785dade54e2319f Mon Sep 17 00:00:00 2001 From: d3v11 Date: Fri, 28 Oct 2011 20:33:48 -0400 Subject: SpliceX updates --- contrib/splicex/configure | 10 +++++++--- contrib/splicex/src/make.in | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'contrib/splicex/src/make.in') diff --git a/contrib/splicex/configure b/contrib/splicex/configure index 7e11811..4568b5b 100755 --- a/contrib/splicex/configure +++ b/contrib/splicex/configure @@ -41,10 +41,14 @@ else exit 1 fi -echo -ne "configuring splicex for $1 @ $PYPATH..." +echo +echo -ne "configuring splicex: " +echo +echo -e " python version == $1" +echo -e " interpreter path == $PYPATH" +echo -e " compiler flags == gcc -I/usr/include/$1" sed -e s^PYTHON^"$1"^g src/make.in >Makefile sed -e s^PYTHON^"$PYPATH"^g src/splicex.py >build/splicex sed -e s^PYTHON^"$PYPATH"^g src/splicex-deshadow.py >build/splicex-deshadow -echo -ne ' OK' echo -echo -e 'configure complete' +echo -e 'splicex configured' diff --git a/contrib/splicex/src/make.in b/contrib/splicex/src/make.in index 455be22..1ed50d2 100644 --- a/contrib/splicex/src/make.in +++ b/contrib/splicex/src/make.in @@ -56,7 +56,7 @@ uninstall: rm -f /usr/bin/splicex-deshadow clean: - rm DEBIAN/splicex DEBIAN/*.deb build/* -rf + rm Makefile DEBIAN/splicex DEBIAN/*.deb build/* -rf preinstall: rm -rf /etc/splicex -- cgit v1.2.3