nslu2-info.de ist ein privates Projekt von mir, welches jeden Monat aus eigener Tasche finanziert wird. Mit einer freiwilligen Spende wird der Erhalt und der weitere Ausbau dieses Forums unterstützt. Um mich beim Erhalt des Forums zu unterstützen, kannst Du entweder via Flattr oder Paypal spenden. Ich bedanke mich schon jetzt bei allen Unterstützern.


wcf.user.option.userOption68: 64X2/8GB/Ubuntu10.04LTS
wcf.user.option.userOption65: anderes
Location: Berlin
Occupation: TK/IT Consulting and Engineering



Quoted
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=pear-xmlrpc
4 PKG_VERSION:=1.5.1
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=XML_RPC-$(PKG_VERSION).tgz
8 PKG_SOURCE_URL:=http://download.pear.php.net/package
9 PKG_MD5SUM:=1b516162ad65971b5fd04a7c279627ec
10 PKG_CAT:=zcat
11
12 PKG_BUILD_DIR:=$(BUILD_DIR)/XML_RPC-$(PKG_VERSION)
13 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/pear-xmlrpc
18 DEPENDS:=+php5 +php-pear
19 SECTION:=lang
20 CATEGORY:=Languages
21 TITLE:=pear-xmlrpc
22 DESCRIPTION:=\
23 PHP's PEAR XML_RPC Library
24 URL:=http://pear.php.net
25 endef
26
27 define Build/Configure
28 endef
29
30 define Build/Compile
31 endef
32
33
34 define Package/pear-xmlrpc/install
35 $(INSTALL_DIR) $(1)/usr/lib/php/XML
36 $(CP) -a \
37 $(PKG_BUILD_DIR)/Dump.php \
38 $(PKG_BUILD_DIR)/RPC.php \
39 $(PKG_BUILD_DIR)/Server.php \
40 $(1)/usr/lib/php/XML
41 endef
42
43 $(eval $(call BuildPackage,pear-xmlrpc))
wcf.user.option.userOption68: 64X2/8GB/Ubuntu10.04LTS
wcf.user.option.userOption65: anderes
Location: Berlin
Occupation: TK/IT Consulting and Engineering
, wenn ich mich recht erinnere, testen die Scripte auf .configure, bzw .build als Flagfiles...
Quoted
include $(TOPDIR)/rules.mk


wcf.user.option.userOption68: 64X2/8GB/Ubuntu10.04LTS
wcf.user.option.userOption65: anderes
Location: Berlin
Occupation: TK/IT Consulting and Engineering
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
[1724][joerg@debr4vm:~/slug/optware/make]$ cat xml-rpc.mk
###########################################################
#
# xml-rpc
#
###########################################################
# You must replace "xml-rpc" and "XML-RPC" with the lower case name and
# upper case name of your new package. Some places below will say
# "Do not change this" - that does not include this global change,
# which must always be done to ensure we have unique names.
#
# XML-RPC_VERSION, XML-RPC_SITE and XML-RPC_SOURCE define
# the upstream location of the source code for the package.
# XML-RPC_DIR is the directory which is created when the source
# archive is unpacked.
# XML-RPC_UNZIP is the command used to unzip the source.
# It is usually "zcat" (for .gz) or "bzcat" (for .bz2)
#
# You should change all these variables to suit your package.
#
XML-RPC_SITE=http://download.pear.php.net/package/
XML-RPC_VERSION=1.5.1
XML-RPC_SOURCE=XML_RPC-$(XML-RPC_VERSION).tgz
XML-RPC_DIR=XML_RPC-$(XML-RPC_VERSION)
XML-RPC_UNZIP=zcat
XML-RPC_MAINTAINER=Joerg B. <caplink@gmx.net>
XML-RPC_DESCRIPTION=send the magic wakeup package over the LAN
XML-RPC_SECTION=util
XML-RPC_PRIORITY=optional
XML-RPC_DEPENDS=
XML-RPC_CONFLICTS=
#
# XML-RPC_IPK_VERSION should be incremented when the ipk changes.
#
XML-RPC_IPK_VERSION=1
#
# XML-RPC_CONFFILES should be a list of user-editable files
#XML-RPC_CONFFILES=
#
# XML-RPC_PATCHES should list any patches, in the the order in
# which they should be applied to the source code.
#
XML-RPC_PATCHES=
#
# If the compilation of the package requires additional
# compilation or linking flags, then list them here.
#
XML-RPC_CPPFLAGS=
XML-RPC_LDFLAGS=
#
# XML-RPC_BUILD_DIR is the directory in which the build is done.
# XML-RPC_SOURCE_DIR is the directory which holds all the
# patches and ipkg control files.
# XML-RPC_IPK_DIR is the directory in which the ipk is built.
# XML-RPC_IPK is the name of the resulting ipk files.
#
# You should not change any of these variables.
#
XML-RPC_BUILD_DIR=$(BUILD_DIR)/xml-rpc
XML-RPC_SOURCE_DIR=$(SOURCE_DIR)/xml-rpc
XML-RPC_IPK_DIR=$(BUILD_DIR)/xml-rpc-$(XML-RPC_VERSION)-ipk
XML-RPC_IPK=$(BUILD_DIR)/xml-rpc_$(XML-RPC_VERSION)-$(XML-RPC_IPK_VERSION)_$(TARGET_ARCH).ipk
#
# This is the dependency on the source code. If the source is missing,
# then it will be fetched from the site using wget.
#
$(DL_DIR)/$(XML-RPC_SOURCE):
$(WGET) -P $(DL_DIR) $(XML-RPC_SITE)/$(XML-RPC_SOURCE)
#
# The source code depends on it existing within the download directory.
# This target will be called by the top level Makefile to download the
# source code's archive (.tar.gz, .bz2, etc.)
#
xml-rpc-source: $(DL_DIR)/$(XML-RPC_SOURCE) $(XML-RPC_PATCHES)
#
# This target unpacks the source code in the build directory.
# If the source archive is not .tar.gz or .tar.bz2, then you will need
# to change the commands here. Patches to the source code are also
# applied in this target as required.
#
# This target also configures the build within the build directory.
# Flags such as LDFLAGS and CPPFLAGS should be passed into configure
# and NOT $(MAKE) below. Passing it to configure causes configure to
# correctly BUILD the Makefile with the right paths, where passing it
# to Make causes it to override the default search paths of the compiler.
#
# If the compilation of the package requires other packages to be staged
# first, then do that first (e.g. "$(MAKE) <bar>-stage <baz>-stage").
#
$(XML-RPC_BUILD_DIR)/.configured:
rm -rf $(BUILD_DIR)/$(XML-RPC_DIR) $(XML-RPC_BUILD_DIR)
$(XML-RPC_UNZIP) $(DL_DIR)/$(XML-RPC_SOURCE) | tar -C $(BUILD_DIR) -xvf -
mv $(BUILD_DIR)/$(XML-RPC_DIR) $(XML-RPC_BUILD_DIR)
touch $(XML-RPC_BUILD_DIR)/.configured
xml-rpc-unpack: $(XML-RPC_BUILD_DIR)/.configured
#
# This builds the actual binary.
#
$(XML-RPC_BUILD_DIR)/.built: $(XML-RPC_BUILD_DIR)/.configured
rm -f $(XML-RPC_BUILD_DIR)/.built
# $(MAKE) -C $(XML-RPC_BUILD_DIR)
touch $(XML-RPC_BUILD_DIR)/.built
#
# This is the build convenience target.
#
xml-rpc: $(XML-RPC_BUILD_DIR)/.built
#
# This rule creates a control file for ipkg. It is no longer
# necessary to create a seperate control file under sources/xml-rpc
#
$(XML-RPC_IPK_DIR)/CONTROL/control:
@install -d $(XML-RPC_IPK_DIR)/CONTROL
@rm -f $@
@echo "Package: xml-rpc" >>$@
@echo "Architecture: $(TARGET_ARCH)" >>$@
@echo "Priority: $(XML-RPC_PRIORITY)" >>$@
@echo "Section: $(XML-RPC_SECTION)" >>$@
@echo "Version: $(XML-RPC_VERSION)-$(XML-RPC_IPK_VERSION)" >>$@
@echo "Maintainer: $(XML-RPC_MAINTAINER)" >>$@
@echo "Source: $(XML-RPC_SITE)/$(XML-RPC_SOURCE)" >>$@
@echo "Description: $(XML-RPC_DESCRIPTION)" >>$@
@echo "Depends: $(XML-RPC_DEPENDS)" >>$@
@echo "Conflicts: $(XML-RPC_CONFLICTS)" >>$@
#
# This builds the IPK file.
#
# Binaries should be installed into $(XML-RPC_IPK_DIR)/opt/sbin or $(XML-RPC_IPK_DIR)/opt/bin
# (use the location in a well-known Linux distro as a guide for choosing sbin or bin).
# Libraries and include files should be installed into $(XML-RPC_IPK_DIR)/opt/{lib,include}
# Configuration files should be installed in $(XML-RPC_IPK_DIR)/opt/etc/xml-rpc/...
# Documentation files should be installed in $(XML-RPC_IPK_DIR)/opt/doc/xml-rpc/...
# Daemon startup scripts should be installed in $(XML-RPC_IPK_DIR)/opt/etc/init.d/S??xml-rpc
#
# You may need to patch your application to make it use these locations.
#
$(XML-RPC_IPK): $(XML-RPC_BUILD_DIR)/.built
rm -rf $(XML-RPC_IPK_DIR) $(BUILD_DIR)/xml-rpc_*_$(TARGET_ARCH).ipk
install -d $(XML-RPC_IPK_DIR)/opt/usr/lib/php/XML
# install -d $(XML-RPC_IPK_DIR)/opt/man/man1
# $(MAKE) -C $(XML-RPC_BUILD_DIR) prefix=$(XML-RPC_IPK_DIR)/opt install
cp $(XML-RPC_BUILD_DIR)/*.php $(XML-RPC_IPK_DIR)/opt/usr/lib/php/XML
$(MAKE) $(XML-RPC_IPK_DIR)/CONTROL/control
cd $(BUILD_DIR); $(IPKG_BUILD) $(XML-RPC_IPK_DIR)
#
# This is called from the top level makefile to create the IPK file.
#
xml-rpc-ipk: $(XML-RPC_IPK)
#
# This is called from the top level makefile to clean all of the built files.
#
xml-rpc-clean:
-$(MAKE) -C $(XML-RPC_BUILD_DIR) clean
#
# This is called from the top level makefile to clean all dynamically created
# directories.
#
xml-rpc-dirclean:
rm -rf $(BUILD_DIR)/$(XML-RPC_DIR) $(XML-RPC_BUILD_DIR) $(XML-RPC_IPK_DIR) $(XML-RPC_IPK)
[1724][joerg@debr4vm:~/slug/optware/make]$
|

Quoted
debian40:/opt/optware/ddwrt/make# make xml-rpc
make: *** Keine Regel, um »xml-rpc« zu erstellen. Schluss.
debian40:/opt/optware/ddwrt/make#
wcf.user.option.userOption68: 64X2/8GB/Ubuntu10.04LTS
wcf.user.option.userOption65: anderes
Location: Berlin
Occupation: TK/IT Consulting and Engineering


Quoted
debian40:/opt/optware/ddwrt# make xml-rpc
rm -rf /opt/optware/ddwrt/builds/XML_RPC-1.5.1 /opt/optware/ddwrt/builds/xml-rpczcat /opt/optware/ddwrt/downloads/XML_RPC-1.5.1.tgz | tar -C /opt/optware/ddwrt/builds -xvf -
zcat: /opt/optware/ddwrt/downloads/XML_RPC-1.5.1.tgz: No such file or directory
mv /opt/optware/ddwrt/builds/XML_RPC-1.5.1 /opt/optware/ddwrt/builds/xml-rpc
mv: Aufruf von stat für „/opt/optware/ddwrt/builds/XML_RPC-1.5.1“ nicht möglich: Datei oder Verzeichnis nicht gefunden
make: *** [/opt/optware/ddwrt/builds/xml-rpc/.configured] Fehler 1
debian40:/opt/optware/ddwrt#




wcf.user.option.userOption68: 64X2/8GB/Ubuntu10.04LTS
wcf.user.option.userOption65: anderes
Location: Berlin
Occupation: TK/IT Consulting and Engineering
, aber ich denke, das ist nicht das Problem. Wie kommst Du immer in das ddwrt Unterverzeichnis?

wcf.user.option.userOption68: 64X2/8GB/Ubuntu10.04LTS
wcf.user.option.userOption65: anderes
Location: Berlin
Occupation: TK/IT Consulting and Engineering

Quoted
SRC_DIR not set, so source tarballs will be unpacked in the build directory
+ case x$PREFIX in
+ case x$USER in
+ abort 'Don'\''t run all.sh or crosstool.sh as root, it'\''s dangerous'
+ echo 'Don'\''t' run all.sh or crosstool.sh as root, 'it'\''s' dangerous
Don't run all.sh or crosstool.sh as root, it's dangerous
+ exec false
make: *** [/opt/optware/toolchain/crosstool/.built] Fehler 1
debian40:/opt/optware#
Quoted
+ test -d /opt/optware/toolchain/crosstool/build/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5
+ mkdir -p /opt/optware/toolchain/crosstool/build/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5
mkdir: kann Verzeichnis „/opt/optware/toolchain/crosstool/build“ nicht anlegen: Keine Berechtigung
make: *** [/opt/optware/toolchain/crosstool/.built] Fehler 1
erich@debian40:/opt/optware$
Quoted
hübsch wäre es die beschriebenen Voraussetzungen einzuhalten (also Hilfsprogamme zu installeren)
Quoted
apt-get install gcc cvs subversion flex bison make pkg-config rsync gettext libglib2.0-dev autoconf libtool automake1.9 sudo patch bzip2 gzip wget sed
wcf.user.option.userOption68: 64X2/8GB/Ubuntu10.04LTS
wcf.user.option.userOption65: anderes
Location: Berlin
Occupation: TK/IT Consulting and Engineering
Quoted from "eriche;34905"
Danke!
Aber dass du ohne "make Target" auskommst - wundert mich!
Wie soll die Toolchain wissen ob du für "Oleg", "ddwrt" oder "openwrt" kompilieren möchtest