diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-03-27 01:15:23 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-03-27 01:15:23 +0000 |
commit | fd399eb16719bedabdf62db9fc606d61f80ebd19 (patch) | |
tree | 66078bbd1617fdf4820dccd5ac7b9df8e4628462 | |
parent | 88fa1b6af7ef029c5df55f99e3859f4b3f4bde7c (diff) | |
download | illumos-packaging-fd399eb16719bedabdf62db9fc606d61f80ebd19.tar.gz |
installgrub
-rw-r--r-- | installgrub/debian/README.source | 10 | ||||
-rw-r--r-- | installgrub/debian/changelog | 5 | ||||
-rw-r--r-- | installgrub/debian/compat | 1 | ||||
-rw-r--r-- | installgrub/debian/control | 21 | ||||
-rw-r--r-- | installgrub/debian/copyright | 27 | ||||
-rw-r--r-- | installgrub/debian/installgrub.install | 2 | ||||
-rw-r--r-- | installgrub/debian/installgrub.manpages | 1 | ||||
-rw-r--r-- | installgrub/debian/patches/installgrub-libs.patch | 14 | ||||
-rw-r--r-- | installgrub/debian/patches/series | 1 | ||||
-rwxr-xr-x | installgrub/debian/rules | 88 | ||||
-rw-r--r-- | installgrub/debian/source/format | 1 |
11 files changed, 171 insertions, 0 deletions
diff --git a/installgrub/debian/README.source b/installgrub/debian/README.source new file mode 100644 index 0000000..9988910 --- /dev/null +++ b/installgrub/debian/README.source @@ -0,0 +1,10 @@ +Real sources are in the package illumos-source-X.Y, +where X and Y are numbers. Exact values of X and Y +are set in Build-Depends field of debian/control as +well as in the version string in debian/changelog, +in a form of X.Y-1. + +To add a patch you need first to unpack files from +illumos-source-X.Y using ./debian/rules unpack +and, desirably, ./debian/rules patch + diff --git a/installgrub/debian/changelog b/installgrub/debian/changelog new file mode 100644 index 0000000..7e6808d --- /dev/null +++ b/installgrub/debian/changelog @@ -0,0 +1,5 @@ +installgrub (2.10-1) unstable; urgency=low + + * Initial release. + + -- Igor Pashev <pashev.igor@gmail.com> Wed, 27 Mar 2013 01:15:05 +0000 diff --git a/installgrub/debian/compat b/installgrub/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/installgrub/debian/compat @@ -0,0 +1 @@ +9 diff --git a/installgrub/debian/control b/installgrub/debian/control new file mode 100644 index 0000000..75b3564 --- /dev/null +++ b/installgrub/debian/control @@ -0,0 +1,21 @@ +Source: installgrub +Section: admin +Priority: optional +Maintainer: Igor Pashev <pashev.igor@gmail.com> +Build-Depends: + dh-illumos, + libfdisk1-dev, + quilt, +Standards-Version: 3.9.3 +Homepage: https://www.illumos.org + +Package: installgrub +Priority: optional +Section: admin +Architecture: illumos-amd64 illumos-i386 +Depends: ${shlibs:Depends}, ${misc:Depends}, illumos-grub +Replaces: illumos-grub ( << 2.10 ) +Description: install GRUB in a disk partition or a floppy + installgrub installs GRUB stage 1 and stage 2 files on the boot area of + a disk partition. If you specify the -m option, installgrub installs the + stage 1 file on the master boot sector of the disk. diff --git a/installgrub/debian/copyright b/installgrub/debian/copyright new file mode 100644 index 0000000..92d3a40 --- /dev/null +++ b/installgrub/debian/copyright @@ -0,0 +1,27 @@ +Files: debian/* +Copyright: 2012, Igor Pashev <pashev.igor@gmail.com> +License: WTFPL-2 + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + . + Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> + . + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + . + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + . + 0. You just DO WHAT THE FUCK YOU WANT TO. + + +Files: * +License: CDDL + Note that sources are not in this package but in the package + illumos-source-X.Y. Those sources are covered by Common Development + and Distribution License (CDDL). + . + On Dyson system, the full text of the CDDL license + can be found in the file `/usr/share/common-licenses/CDDL-1.0'. + diff --git a/installgrub/debian/installgrub.install b/installgrub/debian/installgrub.install new file mode 100644 index 0000000..cb981e3 --- /dev/null +++ b/installgrub/debian/installgrub.install @@ -0,0 +1,2 @@ +sbin/installgrub +usr/sbin/installgrub diff --git a/installgrub/debian/installgrub.manpages b/installgrub/debian/installgrub.manpages new file mode 100644 index 0000000..1104893 --- /dev/null +++ b/installgrub/debian/installgrub.manpages @@ -0,0 +1 @@ +usr/src/man/man1m/installgrub.1m diff --git a/installgrub/debian/patches/installgrub-libs.patch b/installgrub/debian/patches/installgrub-libs.patch new file mode 100644 index 0000000..41d0934 --- /dev/null +++ b/installgrub/debian/patches/installgrub-libs.patch @@ -0,0 +1,14 @@ +Description: libmd5 is a filter library +Index: installgrub/usr/src/cmd/boot/installgrub/Makefile +=================================================================== +--- installgrub.orig/usr/src/cmd/boot/installgrub/Makefile 2012-10-08 00:25:23.000000000 +0000 ++++ installgrub/usr/src/cmd/boot/installgrub/Makefile 2013-03-27 01:07:40.233871454 +0000 +@@ -40,7 +40,7 @@ + CERRWARN += -_gcc=-Wno-unused-function + CERRWARN += -_gcc=-Wno-uninitialized + +-LDLIBS += -lmd5 ++LDLIBS += -lmd + + i386_CFLAGS += -D_LARGEFILE64_SOURCE + i386_CFLAGS += -D_FILE_OFFSET_BITS=64 diff --git a/installgrub/debian/patches/series b/installgrub/debian/patches/series new file mode 100644 index 0000000..f445105 --- /dev/null +++ b/installgrub/debian/patches/series @@ -0,0 +1 @@ +installgrub-libs.patch diff --git a/installgrub/debian/rules b/installgrub/debian/rules new file mode 100755 index 0000000..ea69c6f --- /dev/null +++ b/installgrub/debian/rules @@ -0,0 +1,88 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/buildflags.mk + +export DH_VERBOSE = 1 + + +unpack: unpack-stamp +unpack-stamp: + dh_testdir + dh_illumos_gate --build \ + usr/src/cmd/boot/Makefile\* \ + usr/src/cmd/boot/common \ + usr/src/cmd/boot/installgrub \ + usr/src/common/fs/pcfilep.h \ + usr/src/common/fs/pcfs.c \ + usr/src/uts/common/sys/filep.h \ + usr/src/uts/intel/sys/bootvfs.h \ + usr/src/man/man1m/installgrub.1m + + + # Buggy and unused: + echo > usr/src/Makefile.msg.targ + + # Use GNU ld: + sed -i '/LD_ALTEXEC/d' usr/env.sh + echo 'BDIRECT=' >> usr/src/cmd/Makefile.cmd + echo 'MAPFILE.NES=' >> usr/src/cmd/Makefile.cmd + echo 'MAPFILE.PGA=' >> usr/src/cmd/Makefile.cmd + echo 'MAPFILE.NED=' >> usr/src/cmd/Makefile.cmd + + touch $@ + +patch: patch-stamp +patch-stamp: unpack-stamp + dh_testdir + [ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2 + touch $@ + +unpatch: + dh_testdir + [ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt pop -a -f || test $$? = 2 + rm -f patch-stamp + +dirs-stamp: unpack-stamp + . usr/env.sh; mkdir -p \ + debian/tmp/sbin \ + debian/tmp/usr/sbin + touch $@ + +install: install-stamp + +install-stamp: build-stamp + touch $@ + +build build-arch build-indep: build-stamp +build-stamp: dirs-stamp patch-stamp + dh_illumos_make --native usr/src/cmd/boot/installgrub + touch $@ + +binary binary-arch binary-indep: binary-stamp +binary-stamp: install-stamp + dh_testdir + dh_testroot + dh_installdirs + dh_install + dh_installman + dh_installdocs + dh_installexamples + dh_installchangelogs + dh_bash-completion + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_strip + dh_gencontrol + dh_md5sums + dh_builddeb + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + dh_clean console-login.xml + rm -rf usr .pc + diff --git a/installgrub/debian/source/format b/installgrub/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/installgrub/debian/source/format @@ -0,0 +1 @@ +3.0 (native) |