summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control.in25
-rwxr-xr-xdebian/rules58
-rw-r--r--debian/source/format1
5 files changed, 90 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f4bbfe1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+illumos-source-2.10 (2.10) unstable; urgency=low
+
+ * Initial release.
+
+ -- Igor Pashev <pashev.igor@gmail.com> Mon, 08 Oct 2012 03:14:18 +0400
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control.in b/debian/control.in
new file mode 100644
index 0000000..9511b79
--- /dev/null
+++ b/debian/control.in
@@ -0,0 +1,25 @@
+Source: illumos-source-@VER@
+Section: kernel
+Priority: optional
+Maintainer: Igor Pashev <pashev.igor@gmail.com>
+Build-Depends: debhelper ( >= 9 ), git, xz-utils
+Standards-Version: 3.9.3
+Homepage: http://illumos.org/
+
+
+Package: illumos-source-@VER@
+Section: kernel
+Priority: optional
+Architecture: all
+Depends: xz-utils, ${misc:Depends}
+Suggests: dh-illumos
+Description: complete and unmodified sources of illumos OS (@VER@)
+ This package provides complete and unmodified source code for the illumos
+ operating system: unix kernel, libraries, system tools, user utilities and
+ development tools. Sources are packed into tarball with a snapshot from
+ https://github.com/illumos/illumos-gate
+ .
+ The first number in package name is year from 2010 (2012 => 2),
+ the second number is month (September => 9).
+ .
+ Sources include all commits made before the first day of the designated month.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ba81070
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,58 @@
+#!/usr/bin/make -f
+
+major := 2
+minor := 10
+
+url := git://github.com/illumos/illumos-gate.git
+
+VER := $(major).$(minor)
+
+year := $(shell expr 2010 + $(major))
+month := $(minor)
+
+illumos-gate:
+ git clone $(url) illumos-gate || rm -rf illumos-gate
+
+checkout: illumos-gate
+ cd illumos-gate && git checkout `git rev-list -n 1 --before="$(year)-$(month)-01" master`
+ touch $@
+
+illumos-gate-$(VER).tar.xz: checkout
+ tar -c -f - --exclude-vcs illumos-gate | xz -9 > $@
+
+ChangeLog: checkout
+ cd illumos-gate && git log --date-order --after=1/10/2011 --before="$(year)-$(month)-01" --stat > ../$@
+
+build-arch build-indep build:
+
+debian/control: debian/control.in
+ sed 's,@VER@,$(VER),g' $< > $@
+
+binary-arch binary-indep binary: binary-stamp
+binary-stamp: install-stamp debian/control
+ dh_testroot
+ dh_testdir
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+ touch $@
+
+
+install: install-stamp
+install-stamp: illumos-gate-$(VER).tar.xz ChangeLog
+ dh_testroot
+ dh_testdir
+ dh_installdirs usr/src/illumos-gate
+ dh_install illumos-gate-$(VER).tar.xz usr/src/illumos-gate/
+ dh_installchangelogs ChangeLog
+ touch $@
+
+clean:
+ dh_clean
+ rm -f ChangeLog
+ rm -f checkout
+ rm -f illumos-gate-$(VER).tar.xz
+ rm -rf illumos-gate
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)