---
# System prepended metadata

title: Debian packaging workshop (3)
tags: [Debian packaging workshop]

---

# Debian packaging workshop (3)

###### tags: `Debian packaging workshop`

上週的筆記：Debian packaging workshop 2 
下週的筆記：Debian packaging workshop 4
日期：2015/04/21
網路聊天室：http://webchat.freenode.net/?channels=tossug
直播錄影：http://youtu.be/DpTEEpf2hzM

主題一：繼續前兩週的 Hello World 套件練習
        dpkg-shlibdeps debian/tmp/usr/bin/hello
        find ./debian/tmp/usr/ -type f | xargs md5sum | \
                sed 's/\.\/debian\/tmp\///g' > debian/tmp/DEBIAN/md5sums
        dpkg-gencontrol
https://wiki.debian.org/HardeningWalkthrough
https://wiki.debian.org/Hardening
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

#CFLAGS := `dpkg-buildflags --get CFLAGS` -Wall
#LDFLAGS := `dpkg-buildflags --get LDFLAGS`
#CPPFLAGS := `dpkg-buildflags --get CPPFLAGS`

http://stackoverflow.com/questions/9398046/useful-gcc-flags-to-improve-security-of-your-programs

主題二：Python 套件的打包
https://wiki.debian.org/Python/Packaging
debian/copyright
https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

主題三：how-can-i-help
https://packages.debian.org/sid/how-can-i-help
延到下週

