Skip to content

Added debian package configuration and dockerfile for building#5

Open
hafkensite wants to merge 1 commit intoossobv:masterfrom
hafkensite:debian
Open

Added debian package configuration and dockerfile for building#5
hafkensite wants to merge 1 commit intoossobv:masterfrom
hafkensite:debian

Conversation

@hafkensite
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Member

@wdoekes wdoekes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prima idee van de build-met-docker wat mij betreft.

Moet nog wel wat met versienummers fixen. En een paar andere kleine fixes.

En een kort stukje readme dat in elk geval verklaart wat al de docker-turds in de repo doen, of natuurlijk uitlegt hoe je een deb-package build.

Comment thread .dockerignore
@@ -0,0 +1,32 @@
# Object files
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hierboven even een "# When using docker in a build context, a COPY need not copy build products." ofzo.

Ik snapte niet meteen waar de dockerignore voor was.

Comment thread .gitignore Outdated
*.x86_64
*.hex

#debian build artifacts
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spatietje tussen # en debian.

Comment thread debian/control Outdated
Source: rtpsniff
Section: net
Priority: optional
Maintainer: OSSO B.V. <walter+rtpsniff@osso.nl>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wjdoekes+rtpsniff please

Comment thread debian/control Outdated
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Er mist was description :)

Comment thread debian/copyright Outdated
Source: <https://github.com/ossobv/rtpsniff>

Files: *
Copyright: 2008,2009,2014 OSSO B.V. <walter+rtpsniff@osso.nl>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wjdoekes+rtpsniff

Comment thread debian/copyright
Files: *
Copyright: 2008,2009,2014 OSSO B.V. <walter+rtpsniff@osso.nl>
License: <special license>
License: GPL-3.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Special license? Niet gewoon alleen GPL-3.0?

Comment thread debian/rules
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
export MOD_OUT=out_syslog
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hierboven even een "# Select syslog as output module."

Comment thread debian/rules Outdated
%:
dh $@ --with systemd

override_dh_usrlocal:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wat doet dit?

Comment thread debian/rtpsniff.service Outdated

[Service]
User=root
ExecStart=/usr/local/sbin/rtpsniff eth0 100 "udp and not port 53"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Local? Voor deb files willen we dit gewoon in /usr/sbin.

Comment thread Dockerfile Outdated
ADD . /rtpsniff-1.0
WORKDIR /rtpsniff-1.0
RUN dpkg-buildpackage -uc -us -b
CMD cp ../rtpsniff_1.0-1_amd64.deb .
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik heb een beetje twijfels bij het zo hardcoden van de versienummers. We krijgen straks voor elke build een 1.0 en een changelog met 1.0-1.

Misschien iets met envvars doen? Zie ook build-asterisk shellscript in 80e30a9171159716dbf78f3025eb0e259b0bdc02 van asterdebvg repo? Tevens is daarbij nog een kort stukje readme over hoe je moet builden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants