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

Added debian package configuration and dockerfile for building #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hafkensite
Copy link

No description provided.

Copy link
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.

@@ -0,0 +1,32 @@
# Object files
Copy link
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.

.gitignore Outdated
@@ -28,5 +28,9 @@
*.x86_64
*.hex

#debian build artifacts
Copy link
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.

debian/control Outdated
Source: rtpsniff
Section: net
Priority: optional
Maintainer: OSSO B.V. <[email protected]>
Copy link
Member

Choose a reason for hiding this comment

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

wjdoekes+rtpsniff please

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
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 :)

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

Files: *
Copyright: 2008,2009,2014 OSSO B.V. <[email protected]>
Copy link
Member

Choose a reason for hiding this comment

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

wjdoekes+rtpsniff

Files: *
Copyright: 2008,2009,2014 OSSO B.V. <[email protected]>
License: <special license>
License: GPL-3.0
Copy link
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?

# 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
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."

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

override_dh_usrlocal:
Copy link
Member

Choose a reason for hiding this comment

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

Wat doet dit?


[Service]
User=root
ExecStart=/usr/local/sbin/rtpsniff eth0 100 "udp and not port 53"
Copy link
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.

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
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