1 # Copyright (C) 2008 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://ftp.gwdg.de
/pub
/linux
/handhelds
/packages
/ipkg \
16 http
://www.handhelds.org
/packages
/ipkg \
17 http
://www.gtlib.gatech.edu
/pub
/handhelds.org
/packages
/ipkg
18 PKG_MD5SUM
:=0b10ad2924611bccaea8ddf98481a192
22 include $(INCLUDE_DIR
)/package.mk
27 TITLE
:=Itsy package management system
28 URL
:=http
://handhelds.org
/moin
/moin.cgi
/Ipkg
31 define Package
/ipkg
/description
32 Lightweight package management system
33 ipkg is the Itsy Package Management System
, for handling
34 installation and removal of packages on a system. It can
35 recursively follow dependencies and download
all packages
36 necessary to
install a particular package.
38 ipkg knows how to
install both .ipk and .deb packages.
41 CONFIGURE_ARGS
+= $(DISABLE_LARGEFILE
)
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 DESTDIR
="$(PKG_INSTALL_DIR)" \
50 define Package
/ipkg
/preinst
51 if
[ -L
$${IPKG_INSTROOT}/usr
/bin
/ipkg
] ; then
52 echo
-e
"Removing busybox ipkg symlink"
53 rm $${IPKG_INSTROOT}/usr
/bin
/ipkg
57 define Package
/ipkg
/postrm
58 if
[ "$(busybox ipkg 2>&1)" != "busybox: applet not found" ] ; then
59 echo
-e
"Reinstalling busybox ipkg symlink"
60 ln
-sf ..
/..
/bin
/busybox
$${IPKG_INSTROOT}/usr
/bin
/ipkg
64 define Package
/ipkg
/install
65 $(INSTALL_DIR
) $(1)/usr
/bin
66 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ipkg-cl
$(1)/usr
/bin
/ipkg
67 $(INSTALL_DIR
) $(1)/usr
/lib
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libipkg.so.
* $(1)/usr
/lib
/
71 define Build
/InstallDev
72 mkdir
-p
$(1)/usr
/include
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libipkg
$(1)/usr
/include/
76 $(eval
$(call BuildPackage
,ipkg
))