--- hackpadID: ylzTYm8PxCq hackpadWorkspace: tossug tags: hackpad-import, tossug --- # Debian packaging workshop (3) 上週的筆記:[Debian packaging workshop 2](https://tossug.hackpad.com/0NrG7UCgL6p) 下週的筆記:[Debian packaging workshop 4](/37qXm4zDFbJ) 日期:2015/04/21 網路聊天室:[](http://webchat.freenode.net/?channels=tossug)[http://webchat.freenode.net/?channels=tossug](http://webchat.freenode.net/?channels=tossug) 直播錄影:[](http://youtu.be/DpTEEpf2hzM)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/HardeningWalkthrough [](https://wiki.debian.org/Hardening)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)http://stackoverflow.com/questions/9398046/useful-gcc-flags-to-improve-security-of-your-programs ## 主題二:Python 套件的打包 [](https://wiki.debian.org/Python/Packaging)https://wiki.debian.org/Python/Packaging debian/copyright [](https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/)https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ ## 主題三:how-can-i-help [](https://packages.debian.org/sid/how-can-i-help)https://packages.debian.org/sid/how-can-i-help 延到下週
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up