Skip to content

Instantly share code, notes, and snippets.

@tels7ar
Created January 9, 2012 19:18
Show Gist options
  • Save tels7ar/1584452 to your computer and use it in GitHub Desktop.
Save tels7ar/1584452 to your computer and use it in GitHub Desktop.
NAME=pmwiki
VERSION=2.2.36
FPM=/var/lib/gems/1.8/bin/fpm
DESCRIPTION="The PmWiki php-based wiki"
MAINTAINER="Phil Hollenback <[email protected]>"
.PHONY: package
package:
rm -rf *.deb
wget http://www.pmwiki.org/pub/pmwiki/$(NAME)-$(VERSION).tgz
tar zxvf $(NAME)-$(VERSION).tgz
# need a wide-open wiki.d directory to start
mkdir -p -m 777 $(NAME)-$(VERSION)/wiki.d
$(FPM) -s dir -t deb -n $(NAME) -v $(VERSION) --prefix \
/var/www/$(NAME) \
-C $(NAME)-$(VERSION) -a all --description $(DESCRIPTION) \
-d apache2,php5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment