Skip to content

Instantly share code, notes, and snippets.

@shurab
Created September 22, 2011 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shurab/1233868 to your computer and use it in GitHub Desktop.
Save shurab/1233868 to your computer and use it in GitHub Desktop.
build directory includes
- rhoconnect source directory (rhoconnect-3.0.0.beta3/)
- script rho-install.sh
- Makefile
----------------------------------------
script rho-install.sh
----------------------------------------
#!/bin/sh
VERSION=3.0.0.beta3
cd /tmp/installdir/rhoconnect-$VERSION
./install.sh
echo "Delete tmp files ..."
rm -rf /tmp/installdir
----------------------------------------
Makefile
----------------------------------------
NAME=rhoconnect
VERSION=0.1
.PHONY: package
package:
fpm -s dir -t deb -n $(NAME) -v $(VERSION) \
--post-install ./rho_install.sh --prefix /tmp/installdir \
rhoconnect-3.0.0.beta3/ rho_install.sh
Run make to get debian package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment