diff options
author | miwi <miwi@FreeBSD.org> | 2006-09-14 07:18:14 +0000 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-09-14 07:18:14 +0000 |
commit | 994a9165df7b064808cf1f2f1350e69aad08760d (patch) | |
tree | 073aa50bd8ead471d28597d32dfd452acd9fec8d /www | |
parent | eace520180f14f7a0473b71db934308b7fc01fab (diff) | |
download | FreeBSD-ports-994a9165df7b064808cf1f2f1350e69aad08760d.zip FreeBSD-ports-994a9165df7b064808cf1f2f1350e69aad08760d.tar.gz |
lilURL is a simple PHP/MySQL script for generating lil? URLs. It's similar
to TinyURL, Shorl, MakeAShorterLink, etc, but you can run it on your own
server. Requires PHP and MySQL. Supports mod_rewrite.
WWW: http://lilurl.sourceforge.net
PR: ports/103231
Submitted by: chinsan <chinsan.tw(at)gmail.com>
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/lilurl/Makefile | 48 | ||||
-rw-r--r-- | www/lilurl/distinfo | 3 | ||||
-rw-r--r-- | www/lilurl/files/pkg-message.in | 21 | ||||
-rw-r--r-- | www/lilurl/pkg-descr | 5 |
5 files changed, 78 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index d56a1e7..01c52ff 100644 --- a/www/Makefile +++ b/www/Makefile @@ -230,6 +230,7 @@ SUBDIR += lightsquid SUBDIR += lighttpd SUBDIR += lifetype + SUBDIR += lilurl SUBDIR += linkcheck SUBDIR += linkchecker SUBDIR += linklint diff --git a/www/lilurl/Makefile b/www/lilurl/Makefile new file mode 100644 index 0000000..b5f37b4 --- /dev/null +++ b/www/lilurl/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: lilurl +# Date created: 2006/09/10 +# Whom: chinsan <chinsan.tw@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= lilurl +PORTVERSION= 0.1.1 +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= chinsan.tw@gmail.com +COMMENT= A simple PHP/MySQL script for generating lil? URLs + +USE_PHP= mysql pcre +NO_BUILD= yes +WANT_PHP_WEB= yes + +WRKSRC= ${WRKDIR}/${PORTNAME} +LILURL_DIR?= www/lilurl +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message +PLIST= ${WRKDIR}/pkg-plist + +.include <bsd.port.pre.mk> + +post-extract: + @${MV} ${WRKSRC}/includes/conf.php ${WRKSRC}/includes/conf.php.sample + +pre-install: + @cd ${WRKSRC} && ${FIND} -s . -type f | \ + ${SED} -e 's|^./||;s|^|${LILURL_DIR}/|' > ${PLIST} \ + && ${FIND} -d * -type d | \ + ${SED} -e 's|^|@dirrm ${LILURL_DIR}/|' >> ${PLIST} \ + && ${ECHO_CMD} @dirrm ${LILURL_DIR} >> ${PLIST} + +do-install: + ${MKDIR} ${TARGETDIR}/${LILURL_DIR} + @${CP} -R ${WRKSRC}/ ${TARGETDIR}/${LILURL_DIR} + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${TARGETDIR}/${LILURL_DIR} + +post-install: + @${SED} -e 's,%%TARGETDIR%%,${TARGETDIR},; s,%%LILURL_DIR%%,${LILURL_DIR},g' \ + ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/www/lilurl/distinfo b/www/lilurl/distinfo new file mode 100644 index 0000000..c633594 --- /dev/null +++ b/www/lilurl/distinfo @@ -0,0 +1,3 @@ +MD5 (lilurl-0.1.1.tar.gz) = 35a48bb6c3a53ead7a25cf373a8e631d +SHA256 (lilurl-0.1.1.tar.gz) = 819f2d82b8106141bfa5cc9f15870eb7f3ed21a2e2b46fadd28e1ceb2181055f +SIZE (lilurl-0.1.1.tar.gz) = 3991 diff --git a/www/lilurl/files/pkg-message.in b/www/lilurl/files/pkg-message.in new file mode 100644 index 0000000..f55728e --- /dev/null +++ b/www/lilurl/files/pkg-message.in @@ -0,0 +1,21 @@ +======================================================================= +lilurl is now installed. If you intall it for the first time, +you may have to follow this steps to make it work correctly: + +1. Create the MySQL database: +# mysqladmin --user=root create lilurl + +2. Create a mysql user/password for lilurl: +(change user and/or password if requered) +# echo "GRANT ALL ON lilurl.* TO lilurluser@localhost IDENTIFIED BY 'lilurluser'; FLUSH PRIVILEGES;" | mysql + +3. Import the default lilurl database: +# mysql lilurl < %%TARGETDIR%%/%%LILURL_DIR%%/lilurl.sql + +4. Copy %%TARGETDIR%%/%%LILURL_DIR%%/includes/conf.php.sample to %%TARGETDIR%%/%%LILURL_DIR%%/includes/conf.php + Edit %%TARGETDIR%%/%%LILURL_DIR%%/includes/conf.php + +5. Add alias in apache config for the lilurl dir: +Alias /lilurl "%%TARGETDIR%%/%%LILURL_DIR%%/" + +======================================================================= diff --git a/www/lilurl/pkg-descr b/www/lilurl/pkg-descr new file mode 100644 index 0000000..538bbc2 --- /dev/null +++ b/www/lilurl/pkg-descr @@ -0,0 +1,5 @@ +lilURL is a simple PHP/MySQL script for generating lil? URLs. It's similar +to TinyURL, Shorl, MakeAShorterLink, etc, but you can run it on your own +server. Requires PHP and MySQL. Supports mod_rewrite. + +WWW: http://lilurl.sourceforge.net |