Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a manpage to the Debian package #49

Merged
merged 1 commit into from
Jan 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
FROM debian:jessie

MAINTAINER Chris Kuehl <ckuehl@yelp.com>

# Install the bare minimum dependencies necessary for working with Debian
# packages. Build dependencies should be added under "Build-Depends" inside
# debian/control instead.
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y --no-install-recommends \
build-essential devscripts equivs && \
apt-get clean
WORKDIR /mnt

ENTRYPOINT mk-build-deps -i --tool 'apt-get --no-install-recommends -y' && make builddeb
ENTRYPOINT apt-get update && \
mk-build-deps -i --tool 'apt-get --no-install-recommends -y' && \
make builddeb
1 change: 1 addition & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
files
substvars
dumb-init/
dumb-init.man
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Priority: extra
Maintainer: Chris Kuehl <ckuehl@yelp.com>
Uploaders: Kent Wills <rkwills@yelp.com>
Build-Depends: debhelper (>= 7), gcc, fakeroot, python, python-pytest,
python-mock
python-mock, help2man
Standards-Version: 3.9.6

Package: dumb-init
Expand Down
7 changes: 7 additions & 0 deletions debian/help2man
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[authors]
.B dumb-init
was primarily developed at Yelp.
.br
.br
For a full list of contributors, see
https://github.com/Yelp/dumb-init/graphs/contributors
1 change: 1 addition & 0 deletions debian/manpages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
debian/dumb-init.man
8 changes: 8 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
%:
dh $@

override_dh_auto_build:
dh_auto_build $@
help2man --name 'a minimal init system for Linux containers' \
--no-discard-stderr \
--include debian/help2man \
--no-info \
./dumb-init > debian/dumb-init.man

override_dh_builddeb:
dh_builddeb -- -Zgzip

Expand Down