Add status quo. master
authorMalte S. Stretz <mss@apache.org>
Thu, 23 Sep 2010 12:54:01 +0000 (14:54 +0200)
committerMalte S. Stretz <mss@apache.org>
Thu, 23 Sep 2010 12:54:01 +0000 (14:54 +0200)
make-depdeb.sh [new file with mode: 0755]

diff --git a/make-depdeb.sh b/make-depdeb.sh
new file mode 100755 (executable)
index 0000000..181d963
--- /dev/null
@@ -0,0 +1,82 @@
+#!/bin/bash
+# Create a simple deb package which pulls in all required packages
+# to build the OpenWrt buildroot.
+#
+# Put this in the scripts subdirectory of your checked out version.
+# The first argument can be given to specify a sepcial release (eg .rc3).
+# Requires dpkg-deb.
+#
+# Copyright (c) 2010 Malte S. Stretz <http://msquadrat.de>
+#
+# Feel free to use this script under any OSI approved Open Source license,
+# see <http://www.opensource.org/licenses>.
+
+set -e
+
+cd $(dirname $0)
+
+rel=
+case "$1" in
+       --help)
+               echo "Usage: $0 [rel]"
+               exit 0
+               ;;
+       '')
+               rel="~~r$(svnversion .)"
+               ;;
+       *)
+               rel="~$1"
+               ;;
+esac
+
+. ../package/base-files/files/etc/openwrt_release
+
+pkg=openwrt-${DISTRIB_CODENAME}-dep
+ver=${DISTRIB_RELEASE}$rel
+dir=${pkg}_${ver}
+
+mkdir -p "../tmp/$dir"
+cd "../tmp/$dir"
+mkdir -p DEBIAN
+
+cat - > DEBIAN/control <<EOD
+Package: $pkg
+Version: $ver
+Section: devel
+Priority: extra
+Maintainer: Malte S. Stretz <mss$(echo -n @)apache.org>
+Origin: OpenWrt
+Homepage: http://openwrt.org/
+Architecture: all
+Depends: autoconf,
+ binutils,
+ bison,
+ bzip2,
+ flex,
+ g++,
+ gcc,
+ gawk,
+ make,
+ ncurses-dev,
+ patch,
+ perl-modules,
+ unzip,
+ wget,
+ zlib1g-dev
+Recommends: asciidoc,
+ fastjar,
+ gettext,
+ intltool,
+ jikes,
+ libgtk2.0-dev,
+ libssl-dev,
+ rsync,
+ ruby,
+ sdcc | sdcc-nf,
+ xsltproc
+Description: Pull in all build dependencies needed to generate the ${DISTRIB_DESCRIPTION} buildroot.
+EOD
+
+cd ..
+dpkg-deb --build "$dir"
+