summaryrefslogtreecommitdiff
path: root/beadm
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-01-09 01:12:33 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-01-09 01:12:33 +0400
commitb1ee29e12b62103c942f7e27938e2b8560ae7b9f (patch)
treee1ac97adfc6016705e1e24a5bb34c52e600f0a25 /beadm
parent40624c920f83478792cb9dfdf3600e9376b6a779 (diff)
downloadillumos-packaging-b1ee29e12b62103c942f7e27938e2b8560ae7b9f.tar.gz
beadm
Diffstat (limited to 'beadm')
-rw-r--r--beadm/debian/README.source10
-rw-r--r--beadm/debian/beadm.install1
-rw-r--r--beadm/debian/beadm.manpages1
-rw-r--r--beadm/debian/changelog5
-rw-r--r--beadm/debian/compat1
-rw-r--r--beadm/debian/control71
-rw-r--r--beadm/debian/copyright27
-rw-r--r--beadm/debian/lib32be1-dev.install1
-rw-r--r--beadm/debian/lib32be1.install1
-rw-r--r--beadm/debian/libbe1-dev.install2
-rw-r--r--beadm/debian/libbe1.install1
-rw-r--r--beadm/debian/libbe1.symbols17
-rw-r--r--beadm/debian/patches/illumos-3352-lib64be.patch122
-rw-r--r--beadm/debian/patches/libbe-disable-static.patch13
-rw-r--r--beadm/debian/patches/series2
-rwxr-xr-xbeadm/debian/rules72
-rw-r--r--beadm/debian/source/format1
17 files changed, 348 insertions, 0 deletions
diff --git a/beadm/debian/README.source b/beadm/debian/README.source
new file mode 100644
index 0000000..9988910
--- /dev/null
+++ b/beadm/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/beadm/debian/beadm.install b/beadm/debian/beadm.install
new file mode 100644
index 0000000..16f7b67
--- /dev/null
+++ b/beadm/debian/beadm.install
@@ -0,0 +1 @@
+sbin/beadm
diff --git a/beadm/debian/beadm.manpages b/beadm/debian/beadm.manpages
new file mode 100644
index 0000000..3196af0
--- /dev/null
+++ b/beadm/debian/beadm.manpages
@@ -0,0 +1 @@
+usr/src/man/man1m/beadm.1m
diff --git a/beadm/debian/changelog b/beadm/debian/changelog
new file mode 100644
index 0000000..6755abc
--- /dev/null
+++ b/beadm/debian/changelog
@@ -0,0 +1,5 @@
+beadm (2.10-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Igor Pashev <pashev.igor@gmail.com> Wed, 09 Jan 2013 01:12:22 +0400
diff --git a/beadm/debian/compat b/beadm/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/beadm/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/beadm/debian/control b/beadm/debian/control
new file mode 100644
index 0000000..fcf22fd
--- /dev/null
+++ b/beadm/debian/control
@@ -0,0 +1,71 @@
+Source: beadm
+Section: admin
+Priority: optional
+Maintainer: Igor Pashev <pashev.igor@gmail.com>
+Build-Depends:
+ dh-illumos,
+ illumos-source-2.10,
+ libdevinfo1-dev , lib32devinfo1-dev [illumos-amd64] ,
+ libinstzones1-dev , lib32instzones1-dev [illumos-amd64] ,
+ libnvpair1-dev , lib32nvpair1-dev [illumos-amd64] ,
+ libsunuuid1-dev , lib32sunuuid1-dev [illumos-amd64] ,
+ libzfs1-dev , lib32zfs1-dev [illumos-amd64] ,
+ quilt,
+Standards-Version: 3.9.3
+Homepage: https://www.illumos.org
+
+Package: beadm
+Priority: required
+Section: admin
+Architecture: illumos-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Replaces: util-illumos (=5.11.0-1~2.1)
+Description: utility for managing zfs boot environments
+ The beadm command is the user interface for managing zfs Boot Environments
+ (BEs). This utility is intended to be used by System Administrators who
+ want to manage multiple instances on a single system.
+
+
+Package: libbe1
+Section: libs
+Priority: standard
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Architecture: illumos-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: boot environments library
+ This package contains libbe shared library.
+
+Package: libbe1-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-any
+Provides: libbe-dev
+Depends: libbe1 (= ${binary:Version}), ${misc:Depends},
+ libc-dev, libzfs1-dev, uuid-dev | libsunuuid-dev,
+ libnvpair-dev
+Description: boot environments library (development files)
+ This package contains the header files and symlinks needed
+ to compile applications that use libbe.
+
+Package: lib32be1
+Section: libs
+Priority: standard
+Architecture: illumos-amd64
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: boot environments library (32 bit)
+ This package contains libbe shared library.
+ .
+ This is a 32-bit version of the library.
+
+Package: lib32be1-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-amd64
+Provides: lib32be-dev
+Depends: lib32be1 (= ${binary:Version}), libbe1-dev (= ${binary:Version}),
+ ${misc:Depends}
+Description: boot environments library (32-bit development files)
+ This package contains files needed to compile
+ 32-bit applications that use libbe.
+
diff --git a/beadm/debian/copyright b/beadm/debian/copyright
new file mode 100644
index 0000000..92d3a40
--- /dev/null
+++ b/beadm/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/beadm/debian/lib32be1-dev.install b/beadm/debian/lib32be1-dev.install
new file mode 100644
index 0000000..105ea91
--- /dev/null
+++ b/beadm/debian/lib32be1-dev.install
@@ -0,0 +1 @@
+usr/lib32/libbe.so
diff --git a/beadm/debian/lib32be1.install b/beadm/debian/lib32be1.install
new file mode 100644
index 0000000..166e9a0
--- /dev/null
+++ b/beadm/debian/lib32be1.install
@@ -0,0 +1 @@
+usr/lib32/libbe.so.1
diff --git a/beadm/debian/libbe1-dev.install b/beadm/debian/libbe1-dev.install
new file mode 100644
index 0000000..ff257c3
--- /dev/null
+++ b/beadm/debian/libbe1-dev.install
@@ -0,0 +1,2 @@
+usr/lib/*/libbe.so
+usr/include/libbe*.h
diff --git a/beadm/debian/libbe1.install b/beadm/debian/libbe1.install
new file mode 100644
index 0000000..1e94b84
--- /dev/null
+++ b/beadm/debian/libbe1.install
@@ -0,0 +1 @@
+usr/lib/*/libbe.so.1
diff --git a/beadm/debian/libbe1.symbols b/beadm/debian/libbe1.symbols
new file mode 100644
index 0000000..7088a06
--- /dev/null
+++ b/beadm/debian/libbe1.symbols
@@ -0,0 +1,17 @@
+libbe.so.1 libbe1 #MINVER#
+ SUNWprivate_1.1@SUNWprivate_1.1 2.10-1
+ be_activate@SUNWprivate_1.1 2.10-1
+ be_copy@SUNWprivate_1.1 2.10-1
+ be_create_snapshot@SUNWprivate_1.1 2.10-1
+ be_destroy@SUNWprivate_1.1 2.10-1
+ be_destroy_snapshot@SUNWprivate_1.1 2.10-1
+ be_err_to_str@SUNWprivate_1.1 2.10-1
+ be_free_list@SUNWprivate_1.1 2.10-1
+ be_init@SUNWprivate_1.1 2.10-1
+ be_list@SUNWprivate_1.1 2.10-1
+ be_mount@SUNWprivate_1.1 2.10-1
+ be_rename@SUNWprivate_1.1 2.10-1
+ be_rollback@SUNWprivate_1.1 2.10-1
+ be_unmount@SUNWprivate_1.1 2.10-1
+ be_valid_be_name@SUNWprivate_1.1 2.10-1
+ libbe_print_errors@SUNWprivate_1.1 2.10-1
diff --git a/beadm/debian/patches/illumos-3352-lib64be.patch b/beadm/debian/patches/illumos-3352-lib64be.patch
new file mode 100644
index 0000000..51b8fd4
--- /dev/null
+++ b/beadm/debian/patches/illumos-3352-lib64be.patch
@@ -0,0 +1,122 @@
+commit f5c2e7ea56aaa46a9976476fb0cb1f02b9426f07
+Author: Theo Schlossnagle <jesus@omniti.com>
+Date: Thu Dec 6 16:29:54 2012 -0800
+
+ 3352 would like 64bit install libraries
+ Reviewed by: Garrett D'Amore <garrett@damore.org>
+ Reviewed by: Richard Lowe <richlowe@richlowe.net>
+ Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
+ Reviewed by: Christopher Siden <chris.siden@delphix.com>
+ Approved by: Garrett D'Amore <garrett@damore.org>
+
+diff --git a/usr/src/lib/libbe/Makefile b/usr/src/lib/libbe/Makefile
+index 9dd98e3..0e68a32 100644
+--- a/usr/src/lib/libbe/Makefile
++++ b/usr/src/lib/libbe/Makefile
+@@ -21,6 +21,7 @@
+
+ #
+ # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
++# Copyright 2012 OmniTI Computer Consulting, Inc. All rights reserved.
+ #
+
+ include ../Makefile.lib
+@@ -31,6 +32,7 @@ HDRS= libbe.h \
+ HDRDIR= common
+
+ SUBDIRS= $(MACH)
++$(BUILD64)SUBDIRS += $(MACH64)
+
+ all := TARGET= all
+ clean := TARGET= clean
+diff --git a/usr/src/lib/libbe/Makefile.com b/usr/src/lib/libbe/Makefile.com
+index b8349c1..013d2bd 100644
+--- a/usr/src/lib/libbe/Makefile.com
++++ b/usr/src/lib/libbe/Makefile.com
+@@ -23,6 +23,7 @@
+ # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ #
+ # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
++# Copyright 2012 OmniTI Computer Consulting, Inc. All rights reserved.
+ #
+
+
+@@ -63,6 +64,4 @@ all: $(LIBS) $(LIBRARY)
+
+ lint: lintcheck
+
+-install: $(ROOTLIBS)
+-
+ include ../../Makefile.targ
+diff --git a/usr/src/lib/libbe/amd64/Makefile b/usr/src/lib/libbe/amd64/Makefile
+new file mode 100644
+index 0000000..5d3fa15
+--- /dev/null
++++ b/usr/src/lib/libbe/amd64/Makefile
+@@ -0,0 +1,30 @@
++#
++# CDDL HEADER START
++#
++# The contents of this file are subject to the terms of the
++# Common Development and Distribution License, Version 1.0 only
++# (the "License"). You may not use this file except in compliance
++# with the License.
++#
++# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
++# or http://www.opensolaris.org/os/licensing.
++# See the License for the specific language governing permissions
++# and limitations under the License.
++#
++# When distributing Covered Code, include this CDDL HEADER in each
++# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
++# If applicable, add the following below this CDDL HEADER, with the
++# fields enclosed by brackets "[]" replaced with your own identifying
++# information: Portions Copyright [yyyy] [name of copyright owner]
++#
++# CDDL HEADER END
++#
++#
++# Copyright 2011 OmniTI Computer Consulting, Inc. All rights reserved.
++# Use is subject to license terms.
++#
++
++include ../Makefile.com
++include ../../Makefile.lib.64
++
++install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
+diff --git a/usr/src/lib/libbe/sparcv9/Makefile b/usr/src/lib/libbe/sparcv9/Makefile
+new file mode 100644
+index 0000000..5d3fa15
+--- /dev/null
++++ b/usr/src/lib/libbe/sparcv9/Makefile
+@@ -0,0 +1,30 @@
++#
++# CDDL HEADER START
++#
++# The contents of this file are subject to the terms of the
++# Common Development and Distribution License, Version 1.0 only
++# (the "License"). You may not use this file except in compliance
++# with the License.
++#
++# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
++# or http://www.opensolaris.org/os/licensing.
++# See the License for the specific language governing permissions
++# and limitations under the License.
++#
++# When distributing Covered Code, include this CDDL HEADER in each
++# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
++# If applicable, add the following below this CDDL HEADER, with the
++# fields enclosed by brackets "[]" replaced with your own identifying
++# information: Portions Copyright [yyyy] [name of copyright owner]
++#
++# CDDL HEADER END
++#
++#
++# Copyright 2011 OmniTI Computer Consulting, Inc. All rights reserved.
++# Use is subject to license terms.
++#
++
++include ../Makefile.com
++include ../../Makefile.lib.64
++
++install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
diff --git a/beadm/debian/patches/libbe-disable-static.patch b/beadm/debian/patches/libbe-disable-static.patch
new file mode 100644
index 0000000..1d48288
--- /dev/null
+++ b/beadm/debian/patches/libbe-disable-static.patch
@@ -0,0 +1,13 @@
+Index: beadm/usr/src/lib/libbe/Makefile.com
+===================================================================
+--- beadm.orig/usr/src/lib/libbe/Makefile.com 2013-01-09 00:18:53.083579655 +0400
++++ beadm/usr/src/lib/libbe/Makefile.com 2013-01-09 00:28:18.425498683 +0400
+@@ -60,7 +60,7 @@
+
+ .KEEP_STATE:
+
+-all: $(LIBS) $(LIBRARY)
++all: $(LIBS)
+
+ lint: lintcheck
+
diff --git a/beadm/debian/patches/series b/beadm/debian/patches/series
new file mode 100644
index 0000000..04c972c
--- /dev/null
+++ b/beadm/debian/patches/series
@@ -0,0 +1,2 @@
+illumos-3352-lib64be.patch
+libbe-disable-static.patch
diff --git a/beadm/debian/rules b/beadm/debian/rules
new file mode 100755
index 0000000..0c2911b
--- /dev/null
+++ b/beadm/debian/rules
@@ -0,0 +1,72 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/architecture.mk
+export DH_VERBOSE = 1
+
+unpack: unpack-stamp
+unpack-stamp:
+ dh_testdir
+ dh_illumos_gate --build \
+ usr/src/cmd/beadm \
+ usr/src/lib/libbe \
+ usr/src/man/man1m/beadm.1m \
+
+ # Buggy and unused:
+ echo > usr/src/Makefile.msg.targ
+ 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/usr/include \
+ debian/tmp$$DEB_USRLIBDIR_32 \
+ debian/tmp$$DEB_USRLIBDIR_64 \
+ debian/tmp/sbin \
+ debian/tmp/usr/sbin
+ touch $@
+
+install build build-arch build-indep: build-stamp
+
+build-stamp: dirs-stamp patch-stamp
+ dh_illumos_make usr/src/lib/libbe
+ dh_illumos_make --native usr/src/cmd/beadm
+ touch $@
+
+binary binary-arch binary-indep: binary-stamp
+binary-stamp: build-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_makeshlibs -- -c4
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+ touch $@
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ dh_clean
+ rm -rf usr
+
diff --git a/beadm/debian/source/format b/beadm/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/beadm/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)