ports/103231: [NEW PORT] www/lilurl: A simple PHP/MySQL script for generating lil? URLs

chinsan chinsan.tw at gmail.com
Wed Sep 13 15:40:41 UTC 2006


>Number:         103231
>Category:       ports
>Synopsis:       [NEW PORT] www/lilurl: A simple PHP/MySQL script for generating lil? URLs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 13 15:40:23 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     chinsan
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
Taiwan
>Environment:
System: FreeBSD BSD6.giga.hgc.com.tw 6.1-STABLE FreeBSD 6.1-STABLE #5: Mon Jul 17 09:30:36 CST 2006
>Description:
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

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- lilurl-0.1.1.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	lilurl
#	lilurl/Makefile
#	lilurl/distinfo
#	lilurl/pkg-descr
#	lilurl/files
#	lilurl/files/pkg-message.in
#
echo c - lilurl
mkdir -p lilurl > /dev/null 2>&1
echo x - lilurl/Makefile
sed 's/^X//' >lilurl/Makefile << 'END-of-lilurl/Makefile'
X# New ports collection makefile for:   lilurl
X# Date created:                2006/09/10
X# Whom:                        chinsan <chinsan.tw at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	lilurl
XPORTVERSION=	0.1.1
XCATEGORIES=	www
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	chinsan.tw at gmail.com
XCOMMENT=	A simple PHP/MySQL script for generating lil? URLs
X
XUSE_PHP=	mysql pcre
XNO_BUILD=	yes
XWANT_PHP_WEB=	yes
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
XLILURL_DIR?=	www/lilurl
XPKGMESSAGE=	${WRKDIR}/pkg-message
XSUB_FILES=	pkg-message
XPLIST=		${WRKDIR}/pkg-plist
X
X.include <bsd.port.pre.mk>
X
Xpost-extract:
X	@${MV} ${WRKSRC}/includes/conf.php ${WRKSRC}/includes/conf.php.sample
X
Xpre-install:
X	@cd ${WRKSRC} && ${FIND} -s . -type f | \
X		${SED} -e 's|^./||;s|^|${LILURL_DIR}/|' > ${PLIST} \
X		&& ${FIND} -d * -type d | \
X		${SED} -e 's|^|@dirrm ${LILURL_DIR}/|' >> ${PLIST} \
X		&& ${ECHO_CMD} @dirrm ${LILURL_DIR} >> ${PLIST}
X
Xdo-install:
X	${MKDIR} ${TARGETDIR}/${LILURL_DIR}
X	@${CP} -R ${WRKSRC}/ ${TARGETDIR}/${LILURL_DIR}
X	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${TARGETDIR}/${LILURL_DIR}
X
Xpost-install:
X	@${SED} -e 's,%%TARGETDIR%%,${TARGETDIR},; s,%%LILURL_DIR%%,${LILURL_DIR},g' \
X		${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-lilurl/Makefile
echo x - lilurl/distinfo
sed 's/^X//' >lilurl/distinfo << 'END-of-lilurl/distinfo'
XMD5 (lilurl-0.1.1.tar.gz) = 35a48bb6c3a53ead7a25cf373a8e631d
XSHA256 (lilurl-0.1.1.tar.gz) = 819f2d82b8106141bfa5cc9f15870eb7f3ed21a2e2b46fadd28e1ceb2181055f
XSIZE (lilurl-0.1.1.tar.gz) = 3991
END-of-lilurl/distinfo
echo x - lilurl/pkg-descr
sed 's/^X//' >lilurl/pkg-descr << 'END-of-lilurl/pkg-descr'
XlilURL is a simple PHP/MySQL script for generating lil? URLs. It's similar
Xto TinyURL, Shorl, MakeAShorterLink, etc, but you can run it on your own
Xserver. Requires PHP and MySQL. Supports mod_rewrite.
X
XWWW: http://lilurl.sourceforge.net
END-of-lilurl/pkg-descr
echo c - lilurl/files
mkdir -p lilurl/files > /dev/null 2>&1
echo x - lilurl/files/pkg-message.in
sed 's/^X//' >lilurl/files/pkg-message.in << 'END-of-lilurl/files/pkg-message.in'
X=======================================================================
Xlilurl is now installed. If you intall it for the first time,
Xyou may have to follow this steps to make it work correctly:
X
X1. Create the MySQL database:
X# mysqladmin --user=root create lilurl
X
X2. Create a mysql user/password for lilurl:
X(change user and/or password if requered)
X# echo "GRANT ALL ON lilurl.* TO lilurluser at localhost IDENTIFIED BY 'lilurluser'; FLUSH PRIVILEGES;" | mysql
X
X3. Import the default lilurl database:
X# mysql lilurl < %%TARGETDIR%%/%%LILURL_DIR%%/lilurl.sql
X
X4. Copy %%TARGETDIR%%/%%LILURL_DIR%%/includes/conf.php.sample to %%TARGETDIR%%/%%LILURL_DIR%%/includes/conf.php
X   Edit %%TARGETDIR%%/%%LILURL_DIR%%/includes/conf.php
X
X5. Add alias in apache config for the lilurl dir:
XAlias /lilurl "%%TARGETDIR%%/%%LILURL_DIR%%/"
X
X=======================================================================
END-of-lilurl/files/pkg-message.in
exit
--- lilurl-0.1.1.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list