Skip to content

Instantly share code, notes, and snippets.

@umq
Created February 18, 2012 05:50
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 umq/1857691 to your computer and use it in GitHub Desktop.
Save umq/1857691 to your computer and use it in GitHub Desktop.
Patch for FreBSD port www/tinytinyhttpd to fetch specified github revision.
--- www/tinytinyhttpd/Makefile 2009-11-04 17:14:14.000000000 +0900
+++ www/tinytinyhttpd-github/Makefile 2012-02-18 13:13:12.000000000 +0900
@@ -6,20 +6,33 @@
#
PORTNAME= tinytinyhttpd
-PORTVERSION= 0.0.9
+PORTVERSION= 0.0.11
CATEGORIES= www
-MASTER_SITES= http://cloud.github.com/downloads/mattn/tinytinyhttpd/ \
+MASTER_SITES= https://github.com/${GITHUB_USER}/${PORTNAME}/tarball/${GITREVISION}/ \
${MASTER_SITE_LOCAL}
+DISTNAME= ${PORTNAME}-${GITREVISION}
MAINTAINER= smatsui@karashi.org
COMMENT= Tiny tiny httpd
+LICENSE= BSD
+LICENSE_FILE= ${WRKSRC}/COPYING
+
HAS_CONFIGURE= yes
PLIST_FILES= bin/tthttpd
SUB_FILES= example.conf
PORTDOCS= README example.conf ChangeLog
+FETCH_ARGS= -Rpr
+GITHUB_USER= mattn
+GITREVISION= 3a3a10b
+WRKSRC= ${WRKDIR}/${GITHUB_USER}-${PORTNAME}-${GITREVISION}
+
+pre-configure:
+ cd ${WRKSRC} ; \
+ ${SH} ./autogen.sh
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tthttpd ${PREFIX}/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment