From: Andres Salomon Date: Sun, 15 Feb 2009 21:45:57 +0000 (-0500) Subject: add debian support/packaging X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6803c9c291e2208a2c3c8e63144cb9e365026f64;p=olpc-xo1 add debian support/packaging Signed-off-by: Andres Salomon --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..cc22603 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +olpc-xo1 (0.1) unstable; urgency=low + + * Initial release. + + -- Andres Salomon Sun, 15 Feb 2009 16:43:26 -0500 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..4b2dfb7 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: olpc-xo1 +Section: admin +Priority: extra +Maintainer: Andres Salomon +Build-Depends: debhelper (>= 4.1.0), cdbs +Standards-Version: 3.8.0 + +Package: olpc-xo1-hw +Architecture: all +Description: Support for OLPC XO-1 hardware + This package contains necessary scripts and other things to support OLPC's + XO-1 hardware. This hardware is a mix between a laptop and an embedded + device, and it has some pretty quirky hardware. Thus, it needs some + special handling. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..31bf2f8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,23 @@ +This package was debianized by Andres Salomon on +Sun, 15 Feb 2009 16:38:17 -0500 + +The current Debian maintainer is Andres Salomon . + +Author: Andres Salomon + + Copyright (C) 2009 Andres Salomon + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + diff --git a/debian/olpc-xo1-hw.dirs b/debian/olpc-xo1-hw.dirs new file mode 100644 index 0000000..4e73718 --- /dev/null +++ b/debian/olpc-xo1-hw.dirs @@ -0,0 +1 @@ +etc/initramfs-tools/hooks diff --git a/debian/olpc-xo1-hw.install b/debian/olpc-xo1-hw.install new file mode 100644 index 0000000..7a49adb --- /dev/null +++ b/debian/olpc-xo1-hw.install @@ -0,0 +1 @@ +initramfs-hooks/xo1 etc/initramfs-tools/hooks diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e6192f6 --- /dev/null +++ b/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk diff --git a/hook b/hook deleted file mode 100644 index 63a1d14..0000000 --- a/hook +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh - -# -# List the soft prerequisites here. This is a space separated list of -# names, of scripts that are in the same directory as this one, that -# must be run before this one can be. -# -PREREQ="" - -prereqs() -{ - echo "$PREREQ" -} - -case $1 in -# get pre-requisites -prereqs) - prereqs - exit 0 - ;; -esac - -. /usr/share/initramfs-tools/hook-functions - -# Ensure the mtd (and related) modules are included -for x in cafe_nand redboot jffs2 ubifs ; do - manual_add_modules "${x}" -done - -# Video drivers are important, too, as we don't have VGA support -for x in lxfb gxfb fbcon ; do - manual_add_modules "${x}" -done - diff --git a/initramfs-hooks/xo1 b/initramfs-hooks/xo1 new file mode 100644 index 0000000..63a1d14 --- /dev/null +++ b/initramfs-hooks/xo1 @@ -0,0 +1,34 @@ +#!/bin/sh + +# +# List the soft prerequisites here. This is a space separated list of +# names, of scripts that are in the same directory as this one, that +# must be run before this one can be. +# +PREREQ="" + +prereqs() +{ + echo "$PREREQ" +} + +case $1 in +# get pre-requisites +prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions + +# Ensure the mtd (and related) modules are included +for x in cafe_nand redboot jffs2 ubifs ; do + manual_add_modules "${x}" +done + +# Video drivers are important, too, as we don't have VGA support +for x in lxfb gxfb fbcon ; do + manual_add_modules "${x}" +done +