mirror of
https://github.com/google/nsjail.git
synced 2026-08-30 18:41:30 -07:00
Packaging: Add Debian packaging support and install target
This commit is contained in:
12
Makefile
12
Makefile
@@ -131,3 +131,15 @@ uts.o: uts.h nsjail.h config.pb.h logs.h
|
||||
user.o: user.h nsjail.h config.pb.h logs.h macros.h subproc.h util.h
|
||||
util.o: util.h nsjail.h config.pb.h logs.h macros.h
|
||||
config.pb.o: config.pb.h
|
||||
|
||||
# Install
|
||||
PREFIX ?= /usr
|
||||
BINDIR ?= $(PREFIX)/bin
|
||||
MANDIR ?= $(PREFIX)/share/man/man1
|
||||
|
||||
.PHONY: install
|
||||
install: $(BIN)
|
||||
install -m 755 -d $(DESTDIR)$(BINDIR)
|
||||
install -m 755 $(BIN) $(DESTDIR)$(BINDIR)
|
||||
install -m 755 -d $(DESTDIR)$(MANDIR)
|
||||
install -m 644 nsjail.1 $(DESTDIR)$(MANDIR)
|
||||
|
||||
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
nsjail (3.0-1) unstable; urgency=medium
|
||||
|
||||
* Initial release. (Closes: #210)
|
||||
|
||||
-- Ishan Patel <ishan.patel1998@gmail.com> Fri, 30 Jan 2026 23:45:00 +0530
|
||||
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
||||
10
|
||||
15
debian/control
vendored
Normal file
15
debian/control
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
Source: nsjail
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: Ishan Patel <ishan.patel1998@gmail.com>
|
||||
Build-Depends: debhelper (>= 10), protobuf-compiler, libprotobuf-dev, libnl-route-3-dev, pkg-config, bison, flex, g++, make
|
||||
Standards-Version: 4.0.0
|
||||
Homepage: https://github.com/google/nsjail
|
||||
|
||||
Package: nsjail
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: A light-weight process isolation tool
|
||||
NsJail is a process isolation tool for Linux. It makes use of Linux
|
||||
namespaces and seccomp-bpf syscall filters (with help of the kafel
|
||||
library) to sandbox processes.
|
||||
21
debian/copyright
vendored
Normal file
21
debian/copyright
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: nsjail
|
||||
Source: https://github.com/google/nsjail
|
||||
|
||||
Files: *
|
||||
Copyright: 2014 Google Inc. All Rights Reserved.
|
||||
License: Apache-2.0
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
On Debian systems, the complete text of the Apache version 2.0 license
|
||||
can be found in "/usr/share/common-licenses/Apache-2.0".
|
||||
3
debian/rules
vendored
Executable file
3
debian/rules
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/make -f
|
||||
%:
|
||||
dh $@
|
||||
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (native)
|
||||
Reference in New Issue
Block a user