Skip to content

Commit c9a3a8d

Browse files
author
blogic
committed
branch Attitude Adjustment packages
git-svn-id: svn://svn.openwrt.org/openwrt/branches/packages_12.09@33626 3c298f89-4303-0410-b956-a3cf2f4a3e73
0 parents  commit c9a3a8d

File tree

2,990 files changed

+518691
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,990 files changed

+518691
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.orig
2+
*.rej

admin/debootstrap/Makefile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#
2+
# Copyright (C) 2010 Gianluigi Tiesi <[email protected]>
3+
# Copyright (C) 2011-2012 OpenWrt.org
4+
#
5+
# This is free software, licensed under the GNU General Public License v2.
6+
# See /LICENSE for more information.
7+
#
8+
9+
include $(TOPDIR)/rules.mk
10+
11+
PKG_NAME:=debootstrap
12+
PKG_VERSION:=1.0.42
13+
PKG_RELEASE:=1
14+
15+
PKG_SOURCE:=$(PKG_NAME)-udeb_$(PKG_VERSION)_all.udeb
16+
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/d/debootstrap
17+
PKG_MD5SUM:=749638b8afc0c3e2a06c9b31cfe40b55
18+
19+
UNPACK_CMD=ar -p "$(DL_DIR)/$(PKG_SOURCE)" data.tar.xz | xzcat | tar -C $(1) -xf -
20+
21+
include $(INCLUDE_DIR)/package.mk
22+
23+
define Package/debootstrap
24+
SECTION:=admin
25+
CATEGORY:=Administration
26+
TITLE:=Bootstrap a basic Debian system
27+
URL:=http://wiki.debian.org/Debootstrap
28+
DEPENDS:=+coreutils-chroot +coreutils-sha1sum
29+
MAINTAINER:=Luka Perkov <[email protected]>
30+
endef
31+
32+
define Package/debootstrap/description
33+
debootstrap is used to create a Debian base system from scratch, without
34+
requiring the availability of dpkg or apt. It does this by downloading .deb
35+
files from a mirror site, and carefully unpacking them into a directory which
36+
can eventually be chrooted into.
37+
endef
38+
39+
define Build/Compile
40+
# file pkgdetails.c was imported from debian package base-installer version 1.123
41+
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) ./files/pkgdetails.c -o $(PKG_BUILD_DIR)/usr/share/debootstrap/pkgdetails
42+
endef
43+
44+
define Package/debootstrap/install
45+
$(INSTALL_DIR) $(1)/usr/sbin
46+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/sbin/$(PKG_NAME) $(1)/usr/sbin
47+
$(INSTALL_DIR) $(1)/usr/share/debootstrap
48+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/share/debootstrap/pkgdetails $(1)/usr/share/debootstrap
49+
$(INSTALL_DATA) $(PKG_BUILD_DIR)/usr/share/debootstrap/functions $(1)/usr/share/debootstrap
50+
$(INSTALL_DIR) $(1)/usr/share/debootstrap/scripts
51+
$(INSTALL_DATA) $(PKG_BUILD_DIR)/usr/share/debootstrap/scripts/* $(1)/usr/share/debootstrap/scripts
52+
endef
53+
54+
$(eval $(call BuildPackage,debootstrap))

0 commit comments

Comments
 (0)