もともとgitで管理されているアプリケーションをdebパッケージにしたいというメモ

Posted on Mon 11 July 2016 in blog • Tagged with debian, deb, package, apt

はじめに

debパッケージを作る経験が少ないので、あまり良い方法ではないかもしれない。

サンプル

https://github.com/hitsumabushi/hub

手順

# install
sudo apt install fakeroot

# tag, release をきれいにする
git tag -l > tag_list
for x in $(cat tag_list); do git push origin :$x ; done

# 色々リポジトリを整理した後、空っぽの masterを作る
git checkout --orphan master

# 自前で control, copyright ファイルを書く
# アップストリームのものを持ってくる
# 参考: https://github.com/bcandrea/consul-deb/tree/debian/debian
fakeroot dpkg-deb --build pkg tmp

# 生成 …

Continue reading