From 6328b54a8bc871408634a8b6bc32c7fb66739cd2 Mon Sep 17 00:00:00 2001 From: Bruno Tavares Date: Fri, 7 Mar 2014 00:34:30 -0300 Subject: [PATCH] Add packagin instructions --- .gitignore | 1 + Makefile | 16 ++++++++++++++++ README.md | 9 +++++++++ 3 files changed, 26 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 090f4f8..7430dcb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .baseline compile +*.deb diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fae5717 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +SHELL:=/bin/bash + +VERSION=0.0.1 + +deb: clean + fpm -s dir -t deb -n kickstart \ + -x usr/local/share/kickstart/.baseline \ + -x usr/local/share/kickstart/.git \ + -x usr/local/share/kickstart/kickstart/compile \ + -v $(VERSION) \ + --after-install <(echo "ln -s /usr/local/share/kickstart/bin/kickstart /usr/local/bin/kickstart") \ + --after-remove <(echo "$(RM) /usr/local/bin/kickstart") \ + .=/usr/local/share/kickstart + +clean: + rm *.deb 2>/dev/null || true diff --git a/README.md b/README.md index fc21508..cbcf090 100644 --- a/README.md +++ b/README.md @@ -184,5 +184,14 @@ Docker images tested: * [moul/sshd](https://index.docker.io/u/moul/sshd/) * [bltavares/centos-ssh](https://index.docker.io/u/bltavares/centos-ssh/) +### Packaging + +#### .deb +You need to have make and fpm installed. + +```bash +make deb +``` + ### Thanks This project was inspired on [sunzi](https://github.com/kenn/sunzi)