]> git.proxmox.com Git - pve-libseccomp2.4-dev.git/commitdiff
initial import for 2.4.1-1, plus 13 git commits master
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 3 Jul 2019 10:03:55 +0000 (12:03 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 10 Jul 2019 12:00:43 +0000 (14:00 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
.gitmodules [new file with mode: 0644]
Makefile [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/pve-libseccomp2.4-dev.install [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
libseccomp [new submodule]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..fa3f20f
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "libseccomp"]
+       path = libseccomp
+       url = ../mirror_libseccomp
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..200e6ae
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,50 @@
+include /usr/share/dpkg/pkg-info.mk
+
+PACKAGE := pve-libseccomp-dev
+
+ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION := $(shell git rev-parse HEAD)
+
+SRCDIR=libseccomp
+BUILDSRC := $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
+
+DEB := pve-libseccomp2.4-dev_$(DEB_VERSION_UPSTREAM_REVISION)_$(ARCH).deb
+
+all: $(DEB)
+       echo $(DEB)
+
+.PHONY: submodule
+submodule:
+       test -f "$(SRCDIR)/confiure.ac" || git submodule update --init
+
+$(BUILDSRC): libseccomp debian | submodule
+       rm -rf $(BUILDSRC)
+       cp -a $(SRCDIR) $(BUILDSRC)
+       cp -a debian $(BUILDSRC)/debian
+       echo "git clone git://git.proxmox.com/git/pve-libseccomp.git\\ngit checkout ${GITVERSION}" >$(BUILDSRC)/debian/SOURCE
+
+.PHONY: deb
+deb: $(DEB)
+$(DEB): $(BUILDSRC)
+       rm -f *.deb
+       cd $(BUILDSRC); dpkg-buildpackage -b -us -uc
+       lintian $(DEB)
+
+.PHONY: dsc
+dsc: $(DSC)
+$(DSC): $(BUILDSRC)
+       rm -f *.dsc
+       cd $(BUILDSRC); dpkg-buildpackage -S -us -uc -d -nc
+       lintian $(DSC)
+
+.PHONY: upload
+upload: $(DEB)
+       tar cf - $(DEB) | ssh repoman@repo.proxmox.com upload --product pve --dist stretch
+
+.PHONY: clean
+clean:
+       rm -rf $(BUILDSRC) *.deb *.tar.gz *.changes *.dsc *.buildinfo
+
+.PHONY: dinstall
+dinstall: $(DEB)
+       dpkg -i $(DEB)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..50bcbb6
--- /dev/null
@@ -0,0 +1,5 @@
+pve-libseccomp2.4-dev (2.4.1+git13-1) pve; urgency=medium
+
+  * packaging version 2.4.1 for seccomp notify support in lxc
+
+ -- Proxmox Support Team <support@proxmox.com>  Wed, 03 Jul 2019 11:54:42 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..f599e28
--- /dev/null
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..d0863d9
--- /dev/null
@@ -0,0 +1,21 @@
+Source: pve-libseccomp2.4-dev
+Section: libs
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Build-Depends: debhelper (>= 10~),
+               linux-libc-dev,
+Standards-Version: 3.9.7
+Homepage: https://github.com/seccomp/libseccomp
+
+Package: pve-libseccomp2.4-dev
+Section: libdevel
+Architecture: linux-any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Suggests: seccomp
+Description: libseccomp version 2.4 development file for static linking
+ This library provides a high level interface to constructing, analyzing
+ and installing seccomp filters via a BPF passed to the Linux Kernel's
+ prctl() syscall.
+ .
+ This package contains the development files.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..d44c355
--- /dev/null
@@ -0,0 +1,39 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pve-libseccomp2.4-dev
+Source: https://sourceforge.net/projects/libseccomp/
+
+Files: *
+License: LGPL-2.1
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of version 2.1 of the GNU Lesser General Public License as
+ published by the Free Software Foundation.
+ .
+ This library 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 Lesser General Public License
+ for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, see <http://www.gnu.org/licenses>.
+ .
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License can be found in "/usr/share/common-licenses/LGPL-2.1".
+
+Files: debian/*
+Copyright: 2019 Proxmox Support Team <support@promxox.com>
+License: GPL-2+
+ This package 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 package 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, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/pve-libseccomp2.4-dev.install b/debian/pve-libseccomp2.4-dev.install
new file mode 100644 (file)
index 0000000..7da20a7
--- /dev/null
@@ -0,0 +1,3 @@
+usr/lib/pve-libseccomp2.4/include/*
+usr/lib/*/pve-libseccomp2.4/lib*.a
+usr/lib/*/pve-libseccomp2.4/lib*.la
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..bcc9e42
--- /dev/null
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# Enable verbose build details.
+export V=1
+
+include /usr/share/dpkg/architecture.mk
+
+%:
+       dh $@
+
+override_dh_autoreconf:
+       sed -i -e 's/AC_INIT(\[libseccomp\], \[0\.0\.0\])/AC_INIT([libseccomp], [2.4.1])/' configure.ac
+       dh_autoreconf --as-needed
+
+override_dh_auto_configure:
+       dh_auto_configure -- \
+         --disable-python \
+         --disable-shared \
+         --enable-static \
+         --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)/pve-libseccomp2.4 \
+         --includedir=/usr/lib/pve-libseccomp2.4/include
+
+override_dh_auto_clean:
+       dh_auto_clean
+       rm -f regression.out
+
+override_dh_auto_install:
+       dh_auto_install --destdir=debian/tmp
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/libseccomp b/libseccomp
new file mode 160000 (submodule)
index 0000000..5fc2242
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 5fc22428507ecea00ee9e2215d972777da9a99b6