-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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]> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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]> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wat doet dit?
debian/rtpsniff.service
Outdated
|
||
[Service] | ||
User=root | ||
ExecStart=/usr/local/sbin/rtpsniff eth0 100 "udp and not port 53" |
There was a problem hiding this comment.
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 . |
There was a problem hiding this comment.
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.
8196933
to
c091bff
Compare
No description provided.