diff --git a/cross/cheetah/Makefile b/cross/cheetah/Makefile new file mode 100644 index 00000000..57a2fcc8 --- /dev/null +++ b/cross/cheetah/Makefile @@ -0,0 +1,38 @@ + + +PKG_NAME = Cheetah +PKG_VERS = 2.4.4 +PKG_EXT = tar.gz +PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) +PKG_DIST_SITE = http://pypi.python.org/packages/source/C/$(PKG_NAME)/ +PKG_DIR = $(PKG_NAME)-$(PKG_VERS) + +DEPENDS = + +MAINTAINER = superzebulon@superzebulon.org +HOMEPAGE = http://www.cheetahtemplate.org/ +COMMENT = Cheetah is a template engine and code generation tool. +LICENSE = MIT License + +ADDITIONAL_CFLAGS = +CONFIGURE_ARGS = + +CONFIGURE_TARGET = myConfigure +COMPILE_TARGET = myCompile +INSTALL_TARGET = myInstall + +include ../../mk/spksrc.cross-cc.mk + +# Fetch python definition (provides HOSTPYTHON) +include $(WORK_DIR)/python-cc.mk + +myConfigure: + @$(RUN) grep -v 'from tempfile import mktemp' < cheetah/FileUtils.py > FileUtils.py + @$(RUN) sed -i.orig SetupTools.py \ + -e 's/from cheetah.FileUtils import findFiles/from FileUtils import findFiles/' + +myCompile: + @$(RUN) $(HOSTPYTHON) setup.py build + +myInstall: + @$(RUN) $(HOSTPYTHON) setup.py install --root $(INSTALL_DIR) diff --git a/cross/cheetah/PLIST b/cross/cheetah/PLIST new file mode 100644 index 00000000..cf121ab1 --- /dev/null +++ b/cross/cheetah/PLIST @@ -0,0 +1,4 @@ +rsc:bin/cheetah +rsc:bin/cheetah-analyze +rsc:bin/cheetah-compile +lib:lib/python2.6/site-packages/Cheetah/_namemapper.so diff --git a/cross/curl/Makefile b/cross/curl/Makefile old mode 100755 new mode 100644 index 97501cea..2b96b4c4 --- a/cross/curl/Makefile +++ b/cross/curl/Makefile @@ -17,4 +17,11 @@ LICENSE = GNU_CONFIGURE = 1 +POST_INSTALL_TARGET = correct-curl-config + include ../../mk/spksrc.cross-cc.mk + + +.PHONY: correct-curl-config +correct-curl-config: + sed -i.orig 's#prefix=/#prefix=$(INSTALL_DIR)/#' $(STAGING_INSTALL_PREFIX)/bin/curl-config \ No newline at end of file diff --git a/cross/curl/PLIST b/cross/curl/PLIST old mode 100755 new mode 100644 diff --git a/cross/libconfig/Makefile b/cross/libconfig/Makefile old mode 100755 new mode 100644 diff --git a/cross/libconfig/PLIST b/cross/libconfig/PLIST old mode 100755 new mode 100644 index 3971d2cf..f8886a08 --- a/cross/libconfig/PLIST +++ b/cross/libconfig/PLIST @@ -1,6 +1,6 @@ lnk:lib/libconfig.so -lib:lib/libconfig.so.9 +lnk:lib/libconfig.so.9 lib:lib/libconfig.so.9.1.2 lnk:lib/libconfig++.so -lib:lib/libconfig++.so.9 +lnk:lib/libconfig++.so.9 lib:lib/libconfig++.so.9.1.2 diff --git a/cross/libevent/Makefile b/cross/libevent/Makefile old mode 100755 new mode 100644 diff --git a/cross/libevent/PLIST b/cross/libevent/PLIST old mode 100755 new mode 100644 diff --git a/cross/libjpeg/Makefile b/cross/libjpeg/Makefile new file mode 100644 index 00000000..b131697c --- /dev/null +++ b/cross/libjpeg/Makefile @@ -0,0 +1,20 @@ + + +PKG_NAME = libjpeg +PKG_VERS = 8c +PKG_EXT = tar.gz +PKG_REV = 1 +PKG_DIST_NAME = jpegsrc.v$(PKG_VERS).$(PKG_EXT) +PKG_DIST_SITE = http://www.ijg.org/files +PKG_DIR = jpeg-$(PKG_VERS) + +DEPENDS = + +MAINTAINER= superzebulon@superzebulon.org +HOMEPAGE= http://www.ijg.org/ +COMMENT= JPEG library +LICENSE= + +GNU_CONFIGURE = 1 + +include ../../mk/spksrc.cross-cc.mk diff --git a/cross/libjpeg/PLIST b/cross/libjpeg/PLIST new file mode 100644 index 00000000..e69de29b diff --git a/cross/openssl/Makefile b/cross/openssl/Makefile old mode 100755 new mode 100644 diff --git a/cross/openssl/PLIST b/cross/openssl/PLIST old mode 100755 new mode 100644 diff --git a/cross/pil/Makefile b/cross/pil/Makefile new file mode 100644 index 00000000..e8ae5667 --- /dev/null +++ b/cross/pil/Makefile @@ -0,0 +1,37 @@ + + +PKG_NAME = Imaging +PKG_VERS = 1.1.7 +PKG_EXT = tar.gz +PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) +PKG_DIST_SITE = http://effbot.org/downloads +PKG_DIR = $(PKG_NAME)-$(PKG_VERS) + +DEPENDS = cross/zlib cross/libjpeg + +MAINTAINER = superzebulon@superzebulon.org +HOMEPAGE = http://www.pythonware.com/products/pil/ +COMMENT = Image processing capabilities for Python +LICENSE = http://www.pythonware.com/products/pil/license.htm + +ADDITIONAL_CFLAGS = +CONFIGURE_ARGS = + +CONFIGURE_TARGET = nop +COMPILE_TARGET = myCompile +INSTALL_TARGET = myInstall + +include ../../mk/spksrc.cross-cc.mk + +# Fetch python definition (provides HOSTPYTHON) +include $(WORK_DIR)/python-cc.mk + +ENV += STAGING_INSTALL_PREFIX=$(STAGING_INSTALL_PREFIX) + +nop: ; + +myCompile: + @$(RUN) $(HOSTPYTHON) setup.py build + +myInstall: + @$(RUN) $(HOSTPYTHON) setup.py install --root $(INSTALL_DIR) diff --git a/cross/pil/PLIST b/cross/pil/PLIST new file mode 100644 index 00000000..3c7bc8df --- /dev/null +++ b/cross/pil/PLIST @@ -0,0 +1,2 @@ +lib:lib/python2.6/site-packages/PIL/_imagingmath.so +lib:lib/python2.6/site-packages/PIL/_imaging.so diff --git a/cross/pil/patches/Imaging-1.1.7-cross.patch b/cross/pil/patches/Imaging-1.1.7-cross.patch new file mode 100644 index 00000000..bb9d86fc --- /dev/null +++ b/cross/pil/patches/Imaging-1.1.7-cross.patch @@ -0,0 +1,53 @@ +--- setup.py.orig 2009-11-15 17:06:10.000000000 +0100 ++++ setup.py 2011-08-08 23:28:45.000000000 +0200 +@@ -5,7 +5,7 @@ + # Usage: python setup.py install + # + +-import glob, os, re, struct, string, sys ++import glob, os, re, string, sys + + # make it possible to run the setup script from another directory + try: +@@ -34,8 +34,8 @@ + # TIFF_ROOT = libinclude("/opt/tiff") + + TCL_ROOT = None +-JPEG_ROOT = None +-ZLIB_ROOT = None ++JPEG_ROOT = libinclude(os.environ['STAGING_INSTALL_PREFIX']) ++ZLIB_ROOT = libinclude(os.environ['STAGING_INSTALL_PREFIX']) + TIFF_ROOT = None + FREETYPE_ROOT = None + LCMS_ROOT = None +@@ -147,7 +147,6 @@ + add_directory(library_dirs, "/opt/local/lib") + add_directory(include_dirs, "/opt/local/include") + +- add_directory(library_dirs, "/usr/local/lib") + # FIXME: check /opt/stuff directories here? + + prefix = sysconfig.get_config_var("prefix") +@@ -208,11 +208,9 @@ + add_directory(include_dirs, tcl_dir) + + # standard locations +- add_directory(library_dirs, "/usr/local/lib") +- add_directory(include_dirs, "/usr/local/include") + +- add_directory(library_dirs, "/usr/lib") +- add_directory(include_dirs, "/usr/include") ++ add_directory(library_dirs, os.environ['STAGING_INSTALL_PREFIX'] + "/lib") ++ add_directory(include_dirs, os.environ['STAGING_INSTALL_PREFIX'] + "/include") + + # + # insert new dirs *before* default libs, to avoid conflicts +@@ -299,8 +299,6 @@ + defs.append(("HAVE_LIBZ", None)) + if sys.platform == "win32": + libs.extend(["kernel32", "user32", "gdi32"]) +- if struct.unpack("h", "\0\1")[0] == 1: +- defs.append(("WORDS_BIGENDIAN", None)) + + exts = [(Extension( + "_imaging", files, libraries=libs, define_macros=defs diff --git a/cross/polarssl/Makefile b/cross/polarssl/Makefile old mode 100755 new mode 100644 diff --git a/cross/polarssl/PLIST b/cross/polarssl/PLIST old mode 100755 new mode 100644 diff --git a/cross/polarssl/patches/no-test.patch b/cross/polarssl/patches/no-test.patch old mode 100755 new mode 100644 diff --git a/cross/protobuf-c/Makefile b/cross/protobuf-c/Makefile old mode 100755 new mode 100644 diff --git a/cross/protobuf-c/PLIST b/cross/protobuf-c/PLIST old mode 100755 new mode 100644 index e69de29b..a7b6af5b --- a/cross/protobuf-c/PLIST +++ b/cross/protobuf-c/PLIST @@ -0,0 +1,3 @@ +lnk:lib/libprotobuf-c.so +lnk:lib/libprotobuf-c.so.0 +lib:lib/libprotobuf-c.so.0.0.0 diff --git a/cross/pycrypto/Makefile b/cross/pycrypto/Makefile new file mode 100644 index 00000000..b9f0fadb --- /dev/null +++ b/cross/pycrypto/Makefile @@ -0,0 +1,35 @@ + + +PKG_NAME = pycrypto +PKG_VERS = 2.3 +PKG_EXT = tar.gz +PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) +PKG_DIST_SITE = http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto +PKG_DIR = $(PKG_NAME)-$(PKG_VERS) + +DEPENDS = + +MAINTAINER = superzebulon@superzebulon.org +HOMEPAGE = https://www.dlitz.net/software/pycrypto/ +COMMENT = Python interface to the OpenSSL library +LICENSE = Public domain + +ADDITIONAL_CFLAGS = +CONFIGURE_ARGS = + +CONFIGURE_TARGET = nop +COMPILE_TARGET = myCompile +INSTALL_TARGET = myInstall + +include ../../mk/spksrc.cross-cc.mk + +# Fetch python definition (provides HOSTPYTHON) +include $(WORK_DIR)/python-cc.mk + +nop: ; + +myCompile: + @$(RUN) $(HOSTPYTHON) setup.py build + +myInstall: + @$(RUN) $(HOSTPYTHON) setup.py install --root $(INSTALL_DIR) diff --git a/cross/pycrypto/PLIST b/cross/pycrypto/PLIST new file mode 100644 index 00000000..5c40e70c --- /dev/null +++ b/cross/pycrypto/PLIST @@ -0,0 +1,13 @@ +lib:lib/python2.6/site-packages/Crypto/Cipher/AES.so +lib:lib/python2.6/site-packages/Crypto/Cipher/ARC2.so +lib:lib/python2.6/site-packages/Crypto/Cipher/ARC4.so +lib:lib/python2.6/site-packages/Crypto/Cipher/Blowfish.so +lib:lib/python2.6/site-packages/Crypto/Cipher/CAST.so +lib:lib/python2.6/site-packages/Crypto/Cipher/DES3.so +lib:lib/python2.6/site-packages/Crypto/Cipher/DES.so +lib:lib/python2.6/site-packages/Crypto/Cipher/XOR.so +lib:lib/python2.6/site-packages/Crypto/Hash/MD2.so +lib:lib/python2.6/site-packages/Crypto/Hash/MD4.so +lib:lib/python2.6/site-packages/Crypto/Hash/SHA256.so +lib:lib/python2.6/site-packages/Crypto/Util/_counter.so +lib:lib/python2.6/site-packages/Crypto/Util/strxor.so diff --git a/cross/pycrypto/patches/pycrypto-2.3-xcc.patch b/cross/pycrypto/patches/pycrypto-2.3-xcc.patch new file mode 100644 index 00000000..59dbca28 --- /dev/null +++ b/cross/pycrypto/patches/pycrypto-2.3-xcc.patch @@ -0,0 +1,36 @@ +--- setup.py.orig 2011-07-20 23:09:51.000000000 +0200 ++++ setup.py 2011-07-20 23:10:30.000000000 +0200 +@@ -40,7 +40,6 @@ + from distutils.core import Extension, Command + from distutils.command.build_ext import build_ext + import os, sys +-import struct + + if sys.version[0:1] == '1': + raise RuntimeError, ("The Python Cryptography Toolkit requires " +@@ -106,14 +105,6 @@ + result = find_file(filename, std_dirs, paths) + return result + +-def endianness_macro(): +- s = struct.pack("@I", 0x33221100) +- if s == "\x00\x11\x22\x33": # little endian +- return ('PCT_LITTLE_ENDIAN', 1) +- elif s == "\x33\x22\x11\x00": # big endian +- return ('PCT_BIG_ENDIAN', 1) +- raise AssertionError("Machine is neither little-endian nor big-endian") +- + class PCTBuildExt (build_ext): + def build_extensions(self): + # Detect which modules should be compiled +@@ -276,10 +267,6 @@ + Extension("Crypto.Hash.SHA256", + include_dirs=['src/'], + sources=["src/SHA256.c"]), +- Extension("Crypto.Hash.RIPEMD160", +- include_dirs=['src/'], +- sources=["src/RIPEMD160.c"], +- define_macros=[endianness_macro()]), + + # Block encryption algorithms + Extension("Crypto.Cipher.AES", diff --git a/cross/pycurl/Makefile b/cross/pycurl/Makefile new file mode 100644 index 00000000..fd5f13df --- /dev/null +++ b/cross/pycurl/Makefile @@ -0,0 +1,34 @@ + +PKG_NAME = pycurl +PKG_VERS = 7.19.0 +PKG_EXT = tar.gz +PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) +PKG_DIST_SITE = http://pycurl.sourceforge.net/download +PKG_DIR = $(PKG_NAME)-$(PKG_VERS) + +DEPENDS = cross/curl + +MAINTAINER = superzebulon@superzebulon.org +HOMEPAGE = http://pycurl.sourceforge.net/ +COMMENT = PycURL is a Python interface to libcurl +LICENSE = Dual licensed under the LGPL and an MIT/X derivative license based on the cURL license + +ADDITIONAL_CFLAGS = +CONFIGURE_ARGS = + +CONFIGURE_TARGET = nop +COMPILE_TARGET = myCompile +INSTALL_TARGET = myInstall + +include ../../mk/spksrc.cross-cc.mk + +# Fetch python definition (provides HOSTPYTHON) +include $(WORK_DIR)/python-cc.mk + +nop: ; + +myCompile: + @$(RUN) $(HOSTPYTHON) setup.py build --curl-config=$(STAGING_INSTALL_PREFIX)/bin/curl-config + +myInstall: + @$(RUN) $(HOSTPYTHON) setup.py install --root $(INSTALL_DIR) --curl-config=$(STAGING_INSTALL_PREFIX)/bin/curl-config diff --git a/cross/pycurl/PLIST b/cross/pycurl/PLIST new file mode 100644 index 00000000..c5467e97 --- /dev/null +++ b/cross/pycurl/PLIST @@ -0,0 +1,2 @@ +lib:lib/python2.6/site-packages/pycurl.so +rsc:share/doc/pycurl diff --git a/cross/pyopenssl/Makefile b/cross/pyopenssl/Makefile new file mode 100644 index 00000000..8b598b07 --- /dev/null +++ b/cross/pyopenssl/Makefile @@ -0,0 +1,35 @@ + + +PKG_NAME = pyOpenSSL +PKG_VERS = 0.11 +PKG_EXT = tar.gz +PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) +PKG_DIST_SITE = http://launchpad.net/pyopenssl/main/$(PKG_VERS)/+download/ +PKG_DIR = $(PKG_NAME)-$(PKG_VERS) + +DEPENDS = cross/openssl + +MAINTAINER = superzebulon@superzebulon.org +HOMEPAGE = https://launchpad.net/pyopenssl +COMMENT = Python interface to the OpenSSL library +LICENSE = Apache License + +ADDITIONAL_CFLAGS = +CONFIGURE_ARGS = + +CONFIGURE_TARGET = nop +COMPILE_TARGET = myCompile +INSTALL_TARGET = myInstall + +include ../../mk/spksrc.cross-cc.mk + +# Fetch python definition (provides HOSTPYTHON) +include $(WORK_DIR)/python-cc.mk + +nop: ; + +myCompile: + @$(RUN) $(HOSTPYTHON) setup.py build + +myInstall: + @$(RUN) $(HOSTPYTHON) setup.py install --root $(INSTALL_DIR) diff --git a/cross/pyopenssl/PLIST b/cross/pyopenssl/PLIST new file mode 100644 index 00000000..af8e85c5 --- /dev/null +++ b/cross/pyopenssl/PLIST @@ -0,0 +1,3 @@ +lib:lib/python2.6/site-packages/OpenSSL/crypto.so +lib:lib/python2.6/site-packages/OpenSSL/rand.so +lib:lib/python2.6/site-packages/OpenSSL/SSL.so diff --git a/cross/python26/Makefile b/cross/python26/Makefile old mode 100755 new mode 100644 index 06e2a418..2f7a7365 --- a/cross/python26/Makefile +++ b/cross/python26/Makefile @@ -8,7 +8,8 @@ PKG_DIST_NAME = Python-$(PKG_VERS).$(PKG_EXT) PKG_DIST_SITE = http://www.python.org/ftp/python/$(PKG_VERS) PKG_DIR = Python-$(PKG_VERS) -DEPENDS = cross/zlib cross/openssl cross/sqlite native/$(PKG_NAME) +DEPENDS = cross/zlib cross/openssl cross/sqlite +DEPENDS += native/$(PKG_NAME) MAINTAINER = superzebulon@superzebulon.org HOMEPAGE = http://www.python.org/ @@ -21,15 +22,24 @@ CONFIGURE_ARGS = --enable-ipv6 COMPILE_TARGET = myCompile INSTALL_TARGET = myInstall +POST_INSTALL_TARGET = $(WORK_DIR)/python-cc.mk include ../../mk/spksrc.cross-cc.mk -HOSTPYTHON = $(WORK_DIR)/../../../native/$(PKG_NAME)/work-native/$(PKG_DIR)/python -HOSTPGEN = $(WORK_DIR)/../../../native/$(PKG_NAME)/work-native/$(PKG_DIR)/Parser/pgen +HOSTPYTHON_NATIVE = $(WORK_DIR)/../../../native/$(PKG_NAME)/work-native/$(PKG_DIR)/python +HOSTPGEN_NATIVE = $(WORK_DIR)/../../../native/$(PKG_NAME)/work-native/$(PKG_DIR)/Parser/pgen + +HOSTPYTHON = $(WORK_DIR)/$(PKG_DIR)/hostpython +HOSTPGEN = $(WORK_DIR)/$(PKG_DIR)/hostpgen myCompile: - @$(RUN) $(MAKE) HOSTPYTHON=$(HOSTPYTHON) HOSTPGEN=$(HOSTPGEN) CROSS_COMPILE_TARGET=yes + cp $(HOSTPYTHON_NATIVE) $(HOSTPYTHON) + cp $(HOSTPGEN_NATIVE) $(HOSTPGEN) + $(RUN) $(MAKE) HOSTPYTHON=$(HOSTPYTHON) HOSTPGEN=$(HOSTPGEN) CROSS_COMPILE_TARGET=yes -myInstall: $(PRE_INSTALL_TARGET) - $(RUN) $(MAKE) install prefix=$(STAGING_INSTALL_PREFIX) HOSTPYTHON=$(HOSTPYTHON) HOSTPGEN=$(HOSTPGEN) CROSS_COMPILE_TARGET=yes +myInstall: + $(RUN) $(MAKE) HOSTPYTHON=$(HOSTPYTHON) HOSTPGEN=$(HOSTPGEN) CROSS_COMPILE_TARGET=yes install prefix=$(STAGING_INSTALL_PREFIX) + +$(WORK_DIR)/python-cc.mk: Makefile + @echo HOSTPYTHON=$(HOSTPYTHON) > $@ \ No newline at end of file diff --git a/cross/python26/PLIST b/cross/python26/PLIST old mode 100755 new mode 100644 diff --git a/cross/python26/patches/Python-2.6.6-01-xcompile.patch b/cross/python26/patches/Python-2.6.6-01-xcompile.patch old mode 100755 new mode 100644 diff --git a/cross/python26/patches/Python-2.6.6-02-enable-ipv6.patch b/cross/python26/patches/Python-2.6.6-02-enable-ipv6.patch old mode 100755 new mode 100644 diff --git a/cross/python26/patches/Python-2.6.6-03-off_t.patch b/cross/python26/patches/Python-2.6.6-03-off_t.patch old mode 100755 new mode 100644 diff --git a/cross/python26/patches/Python-2.6.6-04-ld-rpath.patch b/cross/python26/patches/Python-2.6.6-04-ld-rpath.patch old mode 100755 new mode 100644 diff --git a/cross/python26/patches/Python-2.6.6-05-encoding.patch b/cross/python26/patches/Python-2.6.6-05-encoding.patch old mode 100755 new mode 100644 diff --git a/cross/sqlite/Makefile b/cross/sqlite/Makefile old mode 100755 new mode 100644 diff --git a/cross/sqlite/PLIST b/cross/sqlite/PLIST old mode 100755 new mode 100644 diff --git a/cross/transmission/Makefile b/cross/transmission/Makefile old mode 100755 new mode 100644 diff --git a/cross/transmission/PLIST b/cross/transmission/PLIST old mode 100755 new mode 100644 index 552650ab..20b5ddc4 --- a/cross/transmission/PLIST +++ b/cross/transmission/PLIST @@ -5,4 +5,3 @@ bin:bin/transmission-edit bin:bin/transmission-remote bin:bin/transmission-show rsc:share/transmission - diff --git a/cross/transmission/patches/no-debug.patch b/cross/transmission/patches/no-debug.patch old mode 100755 new mode 100644 diff --git a/cross/umurmur/Makefile b/cross/umurmur/Makefile old mode 100755 new mode 100644 diff --git a/cross/umurmur/PLIST b/cross/umurmur/PLIST old mode 100755 new mode 100644 index 07474793..8ca0a2e1 --- a/cross/umurmur/PLIST +++ b/cross/umurmur/PLIST @@ -1,2 +1 @@ bin:bin/umurmurd - diff --git a/cross/xzdec-static/Makefile b/cross/xzdec-static/Makefile old mode 100755 new mode 100644 diff --git a/cross/xzdec-static/PLIST b/cross/xzdec-static/PLIST old mode 100755 new mode 100644 diff --git a/cross/yenc/Makefile b/cross/yenc/Makefile new file mode 100644 index 00000000..dd4819bd --- /dev/null +++ b/cross/yenc/Makefile @@ -0,0 +1,35 @@ + + +PKG_NAME = yenc +PKG_VERS = 0.3 +PKG_EXT = tar.gz +PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) +PKG_DIST_SITE = http://www.golug.it/pub/$(PKG_NAME) +PKG_DIR = $(PKG_NAME)-$(PKG_VERS) + +DEPENDS = + +MAINTAINER = superzebulon@superzebulon.org +HOMEPAGE = http://www.golug.it/yenc.html +COMMENT = yEnc module for Python. +LICENSE = GPL License + +ADDITIONAL_CFLAGS = +CONFIGURE_ARGS = + +CONFIGURE_TARGET = nop +COMPILE_TARGET = myCompile +INSTALL_TARGET = myInstall + +include ../../mk/spksrc.cross-cc.mk + +# Fetch python definition (provides HOSTPYTHON) +include $(WORK_DIR)/python-cc.mk + +nop: ; + +myCompile: + @$(RUN) $(HOSTPYTHON) setup.py build + +myInstall: + @$(RUN) $(HOSTPYTHON) setup.py install --root $(INSTALL_DIR) diff --git a/cross/yenc/PLIST b/cross/yenc/PLIST new file mode 100644 index 00000000..c46a55f7 --- /dev/null +++ b/cross/yenc/PLIST @@ -0,0 +1 @@ +lib:lib/python2.6/site-packages/_yenc.so diff --git a/cross/zlib/Makefile b/cross/zlib/Makefile old mode 100755 new mode 100644 diff --git a/cross/zlib/PLIST b/cross/zlib/PLIST old mode 100755 new mode 100644 diff --git a/mk/spksrc.spk.mk b/mk/spksrc.spk.mk index 1bd76226..2ce3dcc9 100755 --- a/mk/spksrc.spk.mk +++ b/mk/spksrc.spk.mk @@ -35,7 +35,7 @@ $(WORK_DIR)/package.tgz: strip @[ -f $@ ] && rm $@ || true (cd $(STAGING_DIR) && tar cpzf $@ *) -$(WORK_DIR)/INFO: Makefile +$(WORK_DIR)/INFO: Makefile $(SPK_ICON) $(create_target_dir) @$(MSG) "Creating INFO file for $(SPK_NAME)" @echo package=\"$(SPK_NAME)\" > $@ diff --git a/spk/python26/Makefile b/spk/python26/Makefile index 7d8e7dde..39970a98 100755 --- a/spk/python26/Makefile +++ b/spk/python26/Makefile @@ -4,14 +4,18 @@ SPK_VERS = 2.6.6 SPK_REV = 5 SPK_ICON = src/python.png -DEPENDS = cross/$(SPK_NAME) cross/xzdec-static +DEPENDS = cross/$(SPK_NAME) +DEPENDS += cross/pyopenssl cross/pycrypto cross/pycurl cross/pil cross/cheetah cross/yenc +DEPENDS += cross/xzdec-static MAINTAINER = superzebulon@superzebulon.org -HOMEPAGE = http://www.python.org/ COMMENT = Python Programming Language -LICENSE = ADMIN_PORT = RELOAD_UI = yes +DISPLAY_NAME = Python 2.6 + +HOMEPAGE = http://www.python.org/ +LICENSE = INSTALLER_SCRIPT = src/installer.sh SSS_SCRIPT = src/dsm-control.sh diff --git a/spk/python26/src/python.png b/spk/python26/src/python.png index e81120e0..36e20cf3 100755 Binary files a/spk/python26/src/python.png and b/spk/python26/src/python.png differ diff --git a/spk/umurmur/src/dsm-control.sh b/spk/umurmur/src/dsm-control.sh new file mode 100644 index 00000000..ca5472c8 --- /dev/null +++ b/spk/umurmur/src/dsm-control.sh @@ -0,0 +1,135 @@ +#!/bin/sh +# Copyright 2010 Antoine Bertin +# +# +# This file is part of syno-packager. +# +# syno-packager is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# syno-packager is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with syno-packager. If not, see . + +# Common +UMDIR=/usr/local/umurmur +UMVAR=$UMDIR/var +UMLIB=$UMDIR/lib +UMSHR=$UMDIR/share +UMETC=$UMDIR/etc +UMBIN=$UMDIR/bin +UMEXE=$UMBIN/umurmurd +SUEXE=/bin/su +PSEXE=ps +SYNO3APP=/usr/syno/synoman/webman/3rdparty +UMUSR=root + +# Files +UMCNF=$UMETC/umurmur.conf +UMPID=$UMVAR/umurmur.pid +UMLOG=$UMVAR/umurmur.log + +start_daemon () +{ + # Log + echo `date`" : Starting uMurmur..." >> $UMLOG + + # Start uMurmur + $SUEXE $UMUSR -s /bin/sh -c "LD_LIBRARY_PATH=$UMLIB $UMEXE -r -c $UMCNF -p $UMPID >> $UMLOG 2>&1" +} + +stop_daemon () +{ + # Log + echo `date`" : Stoping uMurmur..." >> $UMLOG + + # Kill daemon + if [ -f $UMPID ]; then + kill `cat $UMPID` + rm -f $UMPID + echo " ok" + else + echo " error : Can't find PID file!" + killall umurmurd + fi + sleep 1 + + # Wait until uMurmur is really dead (may take some time). + counter=20 + while [ $counter -gt 0 ] + do + daemon_status || exit 0 + let counter=counter-1 + sleep 1 + done + + exit 1 +} + +reload_daemon () +{ + if [ -f $UMPID ]; then + kill -s HUP `cat $UMPID` + echo " ok" + else + echo " error : Can't find PID file!" + fi + sleep 1 +} + +daemon_status () +{ + [ "`$PSEXE | grep umurmurd | grep -v grep`" != "" ] +} + + +case $1 in + start) + if daemon_status; then + echo "uMurmur daemon already running!" + exit 0 + else + echo "Starting uMurmur daemon..." + start_daemon + exit $? + fi + ;; + stop) + echo -n "Stopping uMurmur daemon..." + stop_daemon + exit 0 + ;; + restart) + stop_daemon + start_daemon + exit $? + ;; + reload) + if daemon_status; then + reload_daemon + fi + exit $? + ;; + status) + if daemon_status; then + echo "Running" + exit 0 + else + echo "Not running" + exit 1 + fi + ;; + log) + echo $UMLOG + exit 0 + ;; + *) + exit 1 + ;; +esac diff --git a/spk/umurmur/src/installer.sh b/spk/umurmur/src/installer.sh new file mode 100644 index 00000000..29816877 --- /dev/null +++ b/spk/umurmur/src/installer.sh @@ -0,0 +1,110 @@ +#!/bin/sh +# Copyright 2010 Antoine Bertin +# +# +# This file is part of syno-packager. +# +# syno-packager is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# syno-packager is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with syno-packager. If not, see . + +# Common +UMDIR=/usr/local/umurmur +UMVAR=$UMDIR/var +UMLIB=$UMDIR/lib +UMSHR=$UMDIR/share +UMETC=$UMDIR/etc +UMBIN=$UMDIR/bin +UMEXE=$UMBIN/umurmurd +UMCRT=$UMBIN/gencert.sh +SUEXE=/bin/su +PSEXE=ps +SYNO3APP=/usr/syno/synoman/webman/3rdparty +UMUSR=root + +# Files +UMLOG=$UMVAR/umurmur.log + +preinst () +{ + exit 0 +} + +postinst () +{ + # Correct the files ownership + chown -R root:root ${SYNOPKG_PKGDEST} + + # Create the view directory + mkdir -p $UMDIR + mkdir -p /usr/local/bin + + # Create symlinks to the installation ditectory + ln -s ${SYNOPKG_PKGDEST}/bin $UMBIN + ln -s ${SYNOPKG_PKGDEST}/lib $UMLIB + ln -s ${SYNOPKG_PKGDEST}/share $UMSHR + ln -s ${SYNOPKG_PKGDEST}/var $UMVAR + ln -s ${SYNOPKG_PKGDEST}/etc $UMETC + + # Create symlink + ln -s $UMEXE /usr/local/bin/`basename $UMEXE` + + # Correct the files permission + chmod 555 /usr/local/umurmur/bin/* + chmod 555 /usr/local/umurmur/lib/* + + # Log installation was successful + echo `date`" : uMurmur SPK successfuly installed" >> $UMLOG + + # Certificate generation + $UMCRT > /dev/null + if [ $? -ne 0 ]; then + echo `date`" : Certificate generation failed" >> $UMLOG + else + echo `date`" : Certificate generation was successful" >> $UMLOG + fi + + exit 0 +} + +preuninst () +{ + exit 0 +} + +postuninst () +{ + # Remove symlink + rm -f /usr/local/bin/`basename $UMEXE` + + # Remove symlinks from /usr/local/umurmur + rm -f $UMBIN + rm -f $UMLIB + rm -f $UMSHR + rm -f $UMVAR + rm -f $UMETC + + # Remove the view directory + rmdir /usr/local/umurmur + + exit 0 +} + +preupgrade () +{ + exit 0 +} + +postupgrade () +{ + exit 0 +}