Package: ipkg Version: 0.99.163 Revision: 3 ### BuildDepends: fink (>= 0.24.12) Depends: lib%N0-shlibs (= %v-%r), dpkg ### Source: http://www.handhelds.org/download/packages/ipkg/%n-%v.tar.gz Source-MD5: 0b10ad2924611bccaea8ddf98481a192 ### ### This patch is from http://www.openembedded.org/repo/org.openembedded.dev/packages/ipkg/files/is-processing.patch PatchFile: %n.patch PatchFile-MD5: e7fa26f4156da0568e88a11666d38630 PatchScript: << %{default_script} ### fix multi defines perl -pi -e 's,struct errlist\*,extern struct errlist\*,g' ipkg.h.in perl -pi -e 's,#include "libbb.h",#include "libbb.h"\nstruct errlist\* error_list;,g' libbb/error_msg.c ### fix endian.h include in md5.c perl -pi -e 's,#include \,#ifndef __APPLE__\n# include \\n#else\n# include \\n#endif,g' md5.c ### fix vfs.h include in ipkg_utils.c perl -pi -e 's,#include \,#ifndef __APPLE__\n# include \\n#else\n# include \\n#endif,g' ipkg_utils.c ### remove un-needed features.h include from libbb/libbb.h perl -pi -e 's,#include \,#ifndef __APPLE__\n# include \\n#endif,g' libbb/libbb.h ### dirname already defined OS X perl -pi -e 's,char \*dirname \(char \*path\);,#ifndef __APPLE__\nchar \*dirname \(char \*path\);\n#endif,g' libbb/libbb.h ### Use fink dir for etc perl -pi -e 's,/etc,%p/etc,g' args.h ### Add define for strndup perl -pi -e "s,#include \"xsystem.h\",#include \"xsystem.h\"\n\n#ifndef HAVE_STRNDUP\nstatic void\*\nstrndup \(const char \*src\, size_t n\)\n\{\n size_t i;\n char \*dst;\n\n if \(src == NULL\)\n return NULL;\n\n dst = \(char*\) malloc \(n + 1\);\n if \(dst != NULL\) \{\n for \(i = 0; i \< n \&\& src\[i\]; i++\)\n dst\[i\] = src\[i\];\n dst\[i\] = '\\\0';\n \}\n\n return dst;\n\}\n#endif,g" ipkg_conf.c << ### DocFiles: AUTHORS COPYING ChangeLog INSTALL NEWS README TODO ### ConfigureParams: --with-ipkglibdir=%p/var/lib --disable-dependency-tracking --with-pic --enable-shared --enable-static --mandir=%i/share/man --infodir=%p/share/info --libexecdir=%p/lib ### InstallScript: << make -j1 install prefix=%i ### Install pkgconfig file (not sure why it doesn't do this) mkdir -p %i/lib/pkgconfig install -m 644 %b/libipkg.pc %i/lib/pkgconfig/libipkg.pc ### Already in dpkg rm %i/bin/update-alternatives ### Make sure all uses can run the app mkdir -p %i/var/lib/ipkg/lists mkdir -p %i/var/lib/ipkg/info << ### SplitOff: << Package: lib%N0-shlibs Files: << lib/lib%N.*.dylib << Shlibs: << %p/lib/libipkg.0.dylib 1.0.0 %n (>= 0.99.163-1) << DocFiles: AUTHORS COPYING ChangeLog INSTALL NEWS README TODO << ### SplitOff2: << Package: lib%N-dev Depends: lib%N0-shlibs (= %v-%r) BuildDependsOnly: true Files: << include lib/pkgconfig lib/lib%N.a lib/lib%N.la lib/lib%N.dylib << DocFiles: AUTHORS COPYING ChangeLog INSTALL NEWS README TODO << ### PostInstScript: << set -e update-alternatives --install %p/bin/ipkg ipkg %p/bin/ipkg-cl 60 exit 0 << ### PreRmScript: << set -e update-alternatives --remove ipkg %p/bin/ipkg-cl exit 0 << ### Description: Itsy Package Management System DescDetail: << iPKG is a very lightweight package management system. It was designed for Linux installations with severe storage limitations such as handheld computers. iPKG is more than just an embedded Linux flash image builder, (although it does that fairly well). It also allows for dynamic installation/removal of packages on a running system. . ipkg knows how to install both .ipk and .deb packages. . ipkg is intended to serve the same functions (and more) for Familiar that dpkg and apt serve for Debian, (while taking up much less space). << ### License: GPL Maintainer: Justin F. Hallett Homepage: http://handhelds.org/moin/moin.cgi/Ipkg