Created
January 9, 2012 19:18
-
-
Save tels7ar/1584452 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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