mirror of
https://github.com/leonardw/synology-open-vm-tools.git
synced 2025-08-16 17:36:51 +00:00
Various fixes on almost everything.
This commit is contained in:
38
cross/cheetah/Makefile
Normal file
38
cross/cheetah/Makefile
Normal file
@ -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)
|
4
cross/cheetah/PLIST
Normal file
4
cross/cheetah/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
rsc:bin/cheetah
|
||||
rsc:bin/cheetah-analyze
|
||||
rsc:bin/cheetah-compile
|
||||
lib:lib/python2.6/site-packages/Cheetah/_namemapper.so
|
7
cross/curl/Makefile
Executable file → Normal file
7
cross/curl/Makefile
Executable file → Normal file
@ -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
|
0
cross/curl/PLIST
Executable file → Normal file
0
cross/curl/PLIST
Executable file → Normal file
0
cross/libconfig/Makefile
Executable file → Normal file
0
cross/libconfig/Makefile
Executable file → Normal file
4
cross/libconfig/PLIST
Executable file → Normal file
4
cross/libconfig/PLIST
Executable file → Normal file
@ -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
|
||||
|
0
cross/libevent/Makefile
Executable file → Normal file
0
cross/libevent/Makefile
Executable file → Normal file
0
cross/libevent/PLIST
Executable file → Normal file
0
cross/libevent/PLIST
Executable file → Normal file
20
cross/libjpeg/Makefile
Normal file
20
cross/libjpeg/Makefile
Normal file
@ -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
|
0
cross/libjpeg/PLIST
Normal file
0
cross/libjpeg/PLIST
Normal file
0
cross/openssl/Makefile
Executable file → Normal file
0
cross/openssl/Makefile
Executable file → Normal file
0
cross/openssl/PLIST
Executable file → Normal file
0
cross/openssl/PLIST
Executable file → Normal file
37
cross/pil/Makefile
Normal file
37
cross/pil/Makefile
Normal file
@ -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)
|
2
cross/pil/PLIST
Normal file
2
cross/pil/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
lib:lib/python2.6/site-packages/PIL/_imagingmath.so
|
||||
lib:lib/python2.6/site-packages/PIL/_imaging.so
|
53
cross/pil/patches/Imaging-1.1.7-cross.patch
Normal file
53
cross/pil/patches/Imaging-1.1.7-cross.patch
Normal file
@ -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
|
0
cross/polarssl/Makefile
Executable file → Normal file
0
cross/polarssl/Makefile
Executable file → Normal file
0
cross/polarssl/PLIST
Executable file → Normal file
0
cross/polarssl/PLIST
Executable file → Normal file
0
cross/polarssl/patches/no-test.patch
Executable file → Normal file
0
cross/polarssl/patches/no-test.patch
Executable file → Normal file
0
cross/protobuf-c/Makefile
Executable file → Normal file
0
cross/protobuf-c/Makefile
Executable file → Normal file
3
cross/protobuf-c/PLIST
Executable file → Normal file
3
cross/protobuf-c/PLIST
Executable file → Normal file
@ -0,0 +1,3 @@
|
||||
lnk:lib/libprotobuf-c.so
|
||||
lnk:lib/libprotobuf-c.so.0
|
||||
lib:lib/libprotobuf-c.so.0.0.0
|
||||
|
35
cross/pycrypto/Makefile
Normal file
35
cross/pycrypto/Makefile
Normal file
@ -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)
|
13
cross/pycrypto/PLIST
Normal file
13
cross/pycrypto/PLIST
Normal file
@ -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
|
36
cross/pycrypto/patches/pycrypto-2.3-xcc.patch
Normal file
36
cross/pycrypto/patches/pycrypto-2.3-xcc.patch
Normal file
@ -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",
|
34
cross/pycurl/Makefile
Normal file
34
cross/pycurl/Makefile
Normal file
@ -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
|
2
cross/pycurl/PLIST
Normal file
2
cross/pycurl/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
lib:lib/python2.6/site-packages/pycurl.so
|
||||
rsc:share/doc/pycurl
|
35
cross/pyopenssl/Makefile
Normal file
35
cross/pyopenssl/Makefile
Normal file
@ -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)
|
3
cross/pyopenssl/PLIST
Normal file
3
cross/pyopenssl/PLIST
Normal file
@ -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
|
22
cross/python26/Makefile
Executable file → Normal file
22
cross/python26/Makefile
Executable file → Normal file
@ -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) > $@
|
||||
|
0
cross/python26/PLIST
Executable file → Normal file
0
cross/python26/PLIST
Executable file → Normal file
0
cross/python26/patches/Python-2.6.6-01-xcompile.patch
Executable file → Normal file
0
cross/python26/patches/Python-2.6.6-01-xcompile.patch
Executable file → Normal file
0
cross/python26/patches/Python-2.6.6-02-enable-ipv6.patch
Executable file → Normal file
0
cross/python26/patches/Python-2.6.6-02-enable-ipv6.patch
Executable file → Normal file
0
cross/python26/patches/Python-2.6.6-03-off_t.patch
Executable file → Normal file
0
cross/python26/patches/Python-2.6.6-03-off_t.patch
Executable file → Normal file
0
cross/python26/patches/Python-2.6.6-04-ld-rpath.patch
Executable file → Normal file
0
cross/python26/patches/Python-2.6.6-04-ld-rpath.patch
Executable file → Normal file
0
cross/python26/patches/Python-2.6.6-05-encoding.patch
Executable file → Normal file
0
cross/python26/patches/Python-2.6.6-05-encoding.patch
Executable file → Normal file
0
cross/sqlite/Makefile
Executable file → Normal file
0
cross/sqlite/Makefile
Executable file → Normal file
0
cross/sqlite/PLIST
Executable file → Normal file
0
cross/sqlite/PLIST
Executable file → Normal file
0
cross/transmission/Makefile
Executable file → Normal file
0
cross/transmission/Makefile
Executable file → Normal file
1
cross/transmission/PLIST
Executable file → Normal file
1
cross/transmission/PLIST
Executable file → Normal file
@ -5,4 +5,3 @@ bin:bin/transmission-edit
|
||||
bin:bin/transmission-remote
|
||||
bin:bin/transmission-show
|
||||
rsc:share/transmission
|
||||
|
||||
|
0
cross/transmission/patches/no-debug.patch
Executable file → Normal file
0
cross/transmission/patches/no-debug.patch
Executable file → Normal file
0
cross/umurmur/Makefile
Executable file → Normal file
0
cross/umurmur/Makefile
Executable file → Normal file
1
cross/umurmur/PLIST
Executable file → Normal file
1
cross/umurmur/PLIST
Executable file → Normal file
@ -1,2 +1 @@
|
||||
bin:bin/umurmurd
|
||||
|
||||
|
0
cross/xzdec-static/Makefile
Executable file → Normal file
0
cross/xzdec-static/Makefile
Executable file → Normal file
0
cross/xzdec-static/PLIST
Executable file → Normal file
0
cross/xzdec-static/PLIST
Executable file → Normal file
35
cross/yenc/Makefile
Normal file
35
cross/yenc/Makefile
Normal file
@ -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)
|
1
cross/yenc/PLIST
Normal file
1
cross/yenc/PLIST
Normal file
@ -0,0 +1 @@
|
||||
lib:lib/python2.6/site-packages/_yenc.so
|
0
cross/zlib/Makefile
Executable file → Normal file
0
cross/zlib/Makefile
Executable file → Normal file
0
cross/zlib/PLIST
Executable file → Normal file
0
cross/zlib/PLIST
Executable file → Normal file
@ -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)\" > $@
|
||||
|
@ -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
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 8.2 KiB |
135
spk/umurmur/src/dsm-control.sh
Normal file
135
spk/umurmur/src/dsm-control.sh
Normal file
@ -0,0 +1,135 @@
|
||||
#!/bin/sh
|
||||
# Copyright 2010 Antoine Bertin
|
||||
# <diaoulael [ignore this] at users.sourceforge period net>
|
||||
#
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# 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
|
110
spk/umurmur/src/installer.sh
Normal file
110
spk/umurmur/src/installer.sh
Normal file
@ -0,0 +1,110 @@
|
||||
#!/bin/sh
|
||||
# Copyright 2010 Antoine Bertin
|
||||
# <diaoulael [ignore this] at users.sourceforge period net>
|
||||
#
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# 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
|
||||
}
|
Reference in New Issue
Block a user