Hello, I need to compile .ipk package 3proxy from sources.
http://www.3proxy.ru/current/3proxy-0.7-devel.tgz
I create folder "3proxy" in "openwrt/8.09/package" and put into folder <files> with sources 3proxy and create makefile:
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=3proxy
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/3proxy
SECTION:=utils
CATEGORY:=Utilities
TITLE:=3proxy
endef
define Package/3proxy/description
Big comments....
...
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./files/* $(PKG_BUILD_DIR)/
endef
TARGET_CFLAGS += $(FPIC)
define Package/3proxy/install
$(INSTALL_DIR) $(1)/bin
endef
$(eval $(call BuildPackage,3proxy))
In the folder <files> already was file "Makefile.Linux". I rename this to "Makefile" and change code:
BUILDDIR =
#CC = gcc
CFLAGS = -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL
COUT = -o
#LN = gcc
LN = mipsel-linux-uclibc-gcc
CROSS_COMPILE="$(TARGET_CROSS)"
LD="$(TARGET_CROSS)ld"
DCFLAGS = -fpic
LDFLAGS = -Wall -O2 -pthread
DLFLAGS = -shared
DLSUFFICS = .ld.so
# -lpthreads may be reuqired on some platforms instead of -pthreads
LIBS = -ldl
LNOUT = -o
EXESUFFICS =
OBJSUFFICS = .o
DEFINEOPTION = -D
COMPFILES = *~
REMOVECOMMAND = rm -f
TYPECOMMAND = cat
COMPATLIBS =
MAKEFILE = Makefile
PLUGINS = StringsPlugin TrafficPlugin PCREPlugin
include Makefile.inc
allplugins:
@list='$(PLUGINS)'; for p in $$list; do cp Makefile Makefile.var plugins/$$p; cd plugins/$$p ; make ; cd ../.. ; done
DESTDIR =
prefix = /usr/local
exec_prefix = $(prefix)
man_prefix = $(prefix)/share
INSTALL = /usr/bin/install
INSTALL_BIN = $(INSTALL) -m 755
INSTALL_DATA = $(INSTALL) -m 644
INSTALL_OBJS = src/3proxy \
src/countersutil \
src/dighosts \
src/ftppr \
src/mycrypt \
src/pop3p \
src/proxy \
src/socks \
src/tcppm \
src/udppm
INSTALL_CFG_OBJS = scripts/3proxy.cfg \
scripts/add3proxyuser.sh
INSTALL_CFG_DEST = config
INSTALL_CFG_OBJS2 = passwd counters bandlimiters
MANDIR1 = $(DESTDIR)$(man_prefix)/man/man1
MANDIR3 = $(DESTDIR)$(man_prefix)/man/man3
MANDIR8 = $(DESTDIR)$(man_prefix)/man/man8
BINDIR = $(DESTDIR)$(exec_prefix)/bin
ETCDIR = $(DESTDIR)$(prefix)/etc/3proxy
install-bin:
$(INSTALL_BIN) -d $(BINDIR)
$(INSTALL_BIN) -s $(INSTALL_OBJS) $(BINDIR)
install-etc-dir:
$(INSTALL_BIN) -d $(ETCDIR)
install-etc-default-config:
if [ -f $(ETCDIR)/$(INSTALL_CFG_DEST) ]; then \
: ; \
else \
$(INSTALL_DATA) $(INSTALL_CFG_OBJS) $(ETCDIR)/$(INSTALL_CFG_DEST) \
fi
install-etc: install-etc-dir
for file in $(INSTALL_CFG_OBJS2); \
do \
touch $(ETCDIR)/$$file; chmod 0600 $(ETCDIR)/$$file; \
done;
install-man:
$(INSTALL_BIN) -d $(MANDIR3)
$(INSTALL_BIN) -d $(MANDIR8)
$(INSTALL_DATA) man/*.3 $(MANDIR3)
$(INSTALL_DATA) man/*.8 $(MANDIR8)
install: install-bin install-etc install-man
Compile goes, in out i have .ipk file, BUT it size is 660 bytes, and it is not binary code from this package! When I have install it to router, there is not files of program in filesystem!
Please, help me! It's very important for me!
P.S. The code of compilation:
uran@uran-VirtualBox:~/openwrt/8.09$ make package/3proxy/compile V=99
make[1]: Entering directory `/home/uran/openwrt/8.09'
make[2]: Entering directory `/home/uran/openwrt/8.09/package/3proxy'
mkdir -p /home/uran/openwrt/8.09/build_dir/mipsel/3proxy
cp -fpR ./files/* /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/
touch /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/.prepared_73f1d53f62e413469892f4d8c71c0cc1
(cd /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/./; if [ -x ./configure ]; then /usr/bin/find /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ -name config.guess | xargs -r -n1 cp /home/uran/openwrt/8.09/scripts/config.guess; /usr/bin/find /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ -name config.sub | xargs -r -n1 cp /home/uran/openwrt/8.09/scripts/config.sub; AR=mipsel-linux-uclibc-ar AS="mipsel-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts" LD=mipsel-linux-uclibc-ld NM=mipsel-linux-uclibc-nm CC="mipsel-linux-uclibc-gcc" GCC="mipsel-linux-uclibc-gcc" CXX="mipsel-linux-uclibc-g++" RANLIB=mipsel-linux-uclibc-ranlib STRIP=mipsel-linux-uclibc-strip OBJCOPY=mipsel-linux-uclibc-objcopy OBJDUMP=mipsel-linux-uclibc-objdump SIZE=mipsel-linux-uclibc-size CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts " CPPFLAGS="-I/home/uran/openwrt/8.09/staging_dir/mipsel/usr/include -I/home/uran/openwrt/8.09/staging_dir/mipsel/include " LDFLAGS="-L/home/uran/openwrt/8.09/staging_dir/toolchain-mipsel_gcc3.4.6/lib -L/home/uran/openwrt/8.09/staging_dir/mipsel/usr/lib -L/home/uran/openwrt/8.09/staging_dir/mipsel/lib " PKG_CONFIG_PATH="/home/uran/openwrt/8.09/staging_dir/mipsel/usr/lib/pkgconfig:/home/uran/openwrt/8.09/staging_dir/host/usr/lib/pkgconfig" PKG_CONFIG_LIBDIR="/home/uran/openwrt/8.09/staging_dir/mipsel/usr/lib/pkgconfig" ./configure --target=mipsel-linux --host=mipsel-linux --build=i686-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
touch /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/.configured
CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -I/home/uran/openwrt/8.09/staging_dir/mipsel/usr/include -I/home/uran/openwrt/8.09/staging_dir/mipsel/include " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -I/home/uran/openwrt/8.09/staging_dir/mipsel/usr/include -I/home/uran/openwrt/8.09/staging_dir/mipsel/include " LDFLAGS="-L/home/uran/openwrt/8.09/staging_dir/toolchain-mipsel_gcc3.4.6/lib -L/home/uran/openwrt/8.09/staging_dir/mipsel/usr/lib -L/home/uran/openwrt/8.09/staging_dir/mipsel/lib " make -C /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/. AR=mipsel-linux-uclibc-ar AS="mipsel-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts" LD=mipsel-linux-uclibc-ld NM=mipsel-linux-uclibc-nm CC="mipsel-linux-uclibc-gcc" GCC="mipsel-linux-uclibc-gcc" CXX="mipsel-linux-uclibc-g++" RANLIB=mipsel-linux-uclibc-ranlib STRIP=mipsel-linux-uclibc-strip OBJCOPY=mipsel-linux-uclibc-objcopy OBJDUMP=mipsel-linux-uclibc-objdump SIZE=mipsel-linux-uclibc-size CROSS="mipsel-linux-uclibc-" ARCH="mipsel" ;
make[3]: Entering directory `/home/uran/openwrt/8.09/build_dir/mipsel/3proxy'
cat Makefile > src/Makefile.var
make[4]: Entering directory `/home/uran/openwrt/8.09/build_dir/mipsel/3proxy/src'
cd .. && cat copying
3proxy 0.6 Public License Agreement
(c) 2000-2009 by 3APA3A (3APA3A@security.nnov.ru)
(c) 2000-2009 by SecurityVulns.com (http://3proxy.ru/)
(c) 2000-2009 by Vladimir Dubrovin (vlad@sandy.ru)
This software uses:
RSA Data Security, Inc. MD4 Message-Digest Algorithm
RSA Data Security, Inc. MD5 Message-Digest Algorithm
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This software is FREEWARE.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that following conditions
are met (BSD style license):
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the SecurityVulns.COM nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
Insted of this license, you can also use and redistribute this software under
terms of compatible license, including:
1. Apache License, Version 2.0
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
2. GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
You may obtain a copy of the License at
http://www.gnu.org/licenses/gpl.txt
3. GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
You may obtain a copy of the License at
http://www.gnu.org/licenses/lgpl.txt
$Id: License,v 1.3 2007/04/05 11:59:47 vlad Exp $
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL 3proxy.c
mipsel-linux-uclibc-gcc -o mainfunc.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DMODULEMAINFUNC=mainfunc proxymain.c
mipsel-linux-uclibc-gcc -o srvproxy.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL proxy.c
mipsel-linux-uclibc-gcc -o srvpop3p.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pop3p.c
mipsel-linux-uclibc-gcc -o srvsmtpp.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL smtpp.c
mipsel-linux-uclibc-gcc -o srvftppr.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL ftppr.c
mipsel-linux-uclibc-gcc -o srvsocks.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL socks.c
mipsel-linux-uclibc-gcc -o srvtcppm.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL tcppm.c
mipsel-linux-uclibc-gcc -o srvicqpr.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL icqpr.c
icqpr.c:17: warning: 'hexdump' defined but not used
mipsel-linux-uclibc-gcc -o srvmsnpr.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL msnpr.c
mipsel-linux-uclibc-gcc -o srvudppm.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL udppm.c
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL sockmap.c
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL sockgetchar.c
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL myalloc.c
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL common.c
mipsel-linux-uclibc-gcc -o auth.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL auth.c
mipsel-linux-uclibc-gcc -o datatypes.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL datatypes.c
mipsel-linux-uclibc-gcc -o md4.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL libs/md4.c
mipsel-linux-uclibc-gcc -o md5.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL libs/md5.c
mipsel-linux-uclibc-gcc -o mycrypt.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL mycrypt.c
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL base64.c
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL ftp.c
mipsel-linux-uclibc-gcc -o smbdes.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL libs/smbdes.c
mipsel-linux-uclibc-gcc -o ntlm.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL ntlm.c
mipsel-linux-uclibc-gcc -o stringtable.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL stringtable.c
mipsel-linux-uclibc-gcc -o srvwebadmin.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL webadmin.c
mipsel-linux-uclibc-gcc -o srvdnspr.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL dnspr.c
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL plugins.c
mipsel-linux-uclibc-gcc -o 3proxy -Wall -O2 -pthread 3proxy.o mainfunc.o auth.o datatypes.o srvproxy.o srvpop3p.o srvsmtpp.o srvftppr.o srvsocks.o srvtcppm.o srvicqpr.o srvmsnpr.o srvudppm.o sockmap.o sockgetchar.o myalloc.o common.o mycrypt.o md5.o md4.o base64.o ftp.o smbdes.o ntlm.o stringtable.o srvwebadmin.o srvdnspr.o plugins.o -ldl
mipsel-linux-uclibc-gcc -o mycryptmain.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITHMAIN mycrypt.c
mipsel-linux-uclibc-gcc -o mycrypt -Wall -O2 -pthread md4.o md5.o base64.o mycryptmain.o
mipsel-linux-uclibc-gcc -o dighosts.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL dighosts.c
mipsel-linux-uclibc-gcc -o dighosts -Wall -O2 -pthread dighosts.o myalloc.o common.o -ldl
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITHMAIN -DNOPORTMAP pop3p.c
mipsel-linux-uclibc-gcc -o pop3p -Wall -O2 -pthread sockmap.o pop3p.o sockgetchar.o myalloc.o common.o -ldl
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITHMAIN -DNOPORTMAP smtpp.c
mipsel-linux-uclibc-gcc -o smtpp -Wall -O2 -pthread sockmap.o smtpp.o sockgetchar.o base64.o myalloc.o common.o -ldl
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITHMAIN -DNOPORTMAP ftppr.c
mipsel-linux-uclibc-gcc -o ftppr -Wall -O2 -pthread sockmap.o ftppr.o sockgetchar.o myalloc.o common.o ftp.o -ldl
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITHMAIN -DPORTMAP tcppm.c
mipsel-linux-uclibc-gcc -o tcppm -Wall -O2 -pthread sockmap.o sockgetchar.o tcppm.o myalloc.o common.o -ldl
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITHMAIN -DPORTMAP icqpr.c
icqpr.c:17: warning: 'hexdump' defined but not used
mipsel-linux-uclibc-gcc -o icqpr -Wall -O2 -pthread sockmap.o sockgetchar.o icqpr.o myalloc.o common.o -ldl
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITHMAIN -DPORTMAP msnpr.c
mipsel-linux-uclibc-gcc -o msnpr -Wall -O2 -pthread sockmap.o sockgetchar.o msnpr.o myalloc.o common.o -ldl
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITHMAIN -DPORTMAP udppm.c
mipsel-linux-uclibc-gcc -o udppm -Wall -O2 -pthread sockmap.o sockgetchar.o udppm.o myalloc.o common.o -ldl
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITHMAIN -DNOPORTMAP socks.c
mipsel-linux-uclibc-gcc -o socks -Wall -O2 -pthread sockmap.o socks.o sockgetchar.o myalloc.o common.o -ldl
mipsel-linux-uclibc-gcc -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITHMAIN -DNOPORTMAP -DANONYMOUS proxy.c
mipsel-linux-uclibc-gcc -o proxy -Wall -O2 -pthread sockmap.o proxy.o sockgetchar.o myalloc.o common.o base64.o ftp.o -ldl
mipsel-linux-uclibc-gcc -o countersutil.o -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL countersutil.c
mipsel-linux-uclibc-gcc -o countersutil -Wall -O2 -pthread countersutil.o -ldl
make[5]: Entering directory `/home/uran/openwrt/8.09/build_dir/mipsel/3proxy/src/plugins/StringsPlugin'
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL StringsPlugin.c
mipsel-linux-uclibc-gcc -o ../../StringsPlugin.ld.so -Wall -O2 -pthread -shared StringsPlugin.o
make[5]: Leaving directory `/home/uran/openwrt/8.09/build_dir/mipsel/3proxy/src/plugins/StringsPlugin'
make[5]: Entering directory `/home/uran/openwrt/8.09/build_dir/mipsel/3proxy/src/plugins/TrafficPlugin'
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL TrafficPlugin.c
mipsel-linux-uclibc-gcc -o ../../TrafficPlugin.ld.so -Wall -O2 -pthread -shared TrafficPlugin.o
make[5]: Leaving directory `/home/uran/openwrt/8.09/build_dir/mipsel/3proxy/src/plugins/TrafficPlugin'
make[5]: Entering directory `/home/uran/openwrt/8.09/build_dir/mipsel/3proxy/src/plugins/PCREPlugin'
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_compile.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_config.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_dfa_exec.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_exec.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_fullinfo.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_get.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_globals.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_info.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_maketables.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_newline.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_ord2utf8.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_refcount.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_study.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_tables.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_try_flipped.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_ucp_searchfuncs.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_valid_utf8.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_version.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_xclass.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_dftables.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcre_plugin.c
mipsel-linux-uclibc-gcc -fpic -Wall -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL pcreposix.c
mipsel-linux-uclibc-gcc -o ../../PCREPlugin.ld.so -Wall -O2 -pthread -shared pcre_compile.o pcre_config.o pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o pcre_globals.o pcre_info.o pcre_maketables.o pcre_newline.o pcre_ord2utf8.o pcre_refcount.o pcre_study.o pcre_tables.o pcre_try_flipped.o pcre_ucp_searchfuncs.o pcre_valid_utf8.o pcre_version.o pcre_xclass.o pcre_dftables.o pcre_plugin.o pcreposix.o
make[5]: Leaving directory `/home/uran/openwrt/8.09/build_dir/mipsel/3proxy/src/plugins/PCREPlugin'
make[4]: Leaving directory `/home/uran/openwrt/8.09/build_dir/mipsel/3proxy/src'
make[3]: Leaving directory `/home/uran/openwrt/8.09/build_dir/mipsel/3proxy'
touch /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/.built
mkdir -p /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy/CONTROL
echo "Package: 3proxy" > /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy/CONTROL/control
echo "Version: 1" >> /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy/CONTROL/control
( DEPENDS=''; for depend in ; do DEPENDS=${DEPENDS:+$DEPENDS, }${depend##+}; done; echo "Depends: $DEPENDS"; echo "Provides: "; echo "Source: package/3proxy"; echo "Section: utils"; echo "Priority: optional"; echo "Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>"; echo "Architecture: mipsel"; echo "Installed-Size: 1"; echo -n "Description: "; getvar V_Package_3proxy_description | sed -e 's,^[[:space:]]*, ,g'; ) >> /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy/CONTROL/control
chmod 644 /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy/CONTROL/control
(cd /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy/CONTROL; var2file "V_Package_3proxy_conffiles" conffiles; var2file "V_Package_3proxy_preinst" preinst; var2file "V_Package_3proxy_postinst" postinst; var2file "V_Package_3proxy_prerm" prerm; var2file "V_Package_3proxy_postrm" postrm; )
install -d -m0755 /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy/bin
mkdir -p /home/uran/openwrt/8.09/bin/packages/mipsel
find /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy -name 'CVS' -o -name '.svn' -o -name '.#*' | xargs -r rm -rf
NM="mipsel-linux-uclibc-nm" STRIP="/home/uran/openwrt/8.09/staging_dir/host/bin/sstrip" STRIP_KMOD="mipsel-linux-uclibc-strip --strip-unneeded --remove-section=.comment" /home/uran/openwrt/8.09/scripts/rstrip.sh /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy
SIZE=`cd /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy; du -bs --exclude=./CONTROL . 2>/dev/null | cut -f1`; /home/uran/openwrt/8.09/staging_dir/host/bin/sed -i -e "s|^\(Installed-Size:\).*|\1 $SIZE|g" /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy/CONTROL/control
ipkg-build -c -o 0 -g 0 /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy /home/uran/openwrt/8.09/bin/packages/mipsel
Packaged contents of /home/uran/openwrt/8.09/build_dir/mipsel/3proxy/ipkg/3proxy into /home/uran/openwrt/8.09/bin/packages/mipsel/3proxy_1_mipsel.ipk
make[2]: Leaving directory `/home/uran/openwrt/8.09/package/3proxy'
make[1]: Leaving directory `/home/uran/openwrt/8.09'