2 # Copyright (C) 2010 Gianluigi Tiesi <sherpya@netfarm.it>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-udeb_
$(PKG_VERSION
)_all.udeb
15 PKG_SOURCE_URL
:=http
://ftp.it.debian.org
/debian
/pool
/main
/d
/debootstrap
16 PKG_MD5SUM
:=8cda29a71c3e951fa61eeae5d802ec76
18 #UNPACK_CMD=dpkg-deb --fsys-tarfile $(DL_DIR)/$(PKG_SOURCE) | ( cd $(1) && tar -xf - )
19 UNPACK_CMD
=ar -p
"$(DL_DIR)/$(PKG_SOURCE)" data.
tar.gz |
( cd
$(1) && tar -xzf
- )
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/debootstrap
25 CATEGORY
:=Administration
26 TITLE
:=Bootstrap a basic Debian system
27 URL
:=http
://wiki.debian.org
/Debootstrap
28 DEPENDS
:=+coreutils-chroot
29 MAINTAINER
:=Gianluigi Tiesi
<sherpya@netfarm.it
>
32 define Package
/debootstrap
/description
33 debootstrap is used to create a Debian base system from scratch
,
34 without requiring the availability of dpkg or apt. It does this by
35 downloading .deb files from a mirror site
, and carefully unpacking them
36 into a directory which can eventually be chrooted into.
40 $(TARGET_CC
) $(TARGET_CFLAGS
) $(TARGET_LDFLAGS
) .
/files
/pkgdetails.c
-o
$(PKG_BUILD_DIR
)/usr
/share
/debootstrap
/pkgdetails
43 define Package
/debootstrap
/install
44 cd
$(PKG_BUILD_DIR
) && ( $(FIND
) usr | cpio
-pd
$(1) )
47 $(eval
$(call BuildPackage
,debootstrap
))