<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GeeK`s Lifez &#187; Package</title>
	<atom:link href="http://blog.cannibalz.net/category/package/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cannibalz.net</link>
	<description>GeeK`s Lifez</description>
	<lastBuildDate>Mon, 16 Jan 2012 21:00:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Create your own Tinyproxy FreeBSD&#8217;s package</title>
		<link>http://blog.cannibalz.net/2010/06/08/create-your-own-tinyproxy-freebsds-package/</link>
		<comments>http://blog.cannibalz.net/2010/06/08/create-your-own-tinyproxy-freebsds-package/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 13:27:22 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Package]]></category>
		<category><![CDATA[Tinyproxy]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/?p=84</guid>
		<description><![CDATA[In FreeBSD  8.0, tinyproxy's package in stable repository isn't compil with the --enable-transparent-proxy option. This is the reason why, i'll explain how to create a tinyproxy's package including this compilation option. First, edit your /usr/ports/www/tinyproxy/Makefile like the following: # New ports collection makefile for:    tinyproxy # Date created:         01 Jul 1999 # Whom:                 Mitsuru Yoshida [...]]]></description>
			<content:encoded><![CDATA[<p>In FreeBSD  8.0, tinyproxy's package in stable repository isn't compil with the --enable-transparent-proxy option.</p>
<p>This is the reason why, i'll explain how to create a tinyproxy's package including this compilation option.</p>
<p>First, edit your /usr/ports/www/tinyproxy/Makefile like the following:</p>
<blockquote><p># New ports collection makefile for:    tinyproxy<br />
# Date created:         01 Jul 1999<br />
# Whom:                 Mitsuru Yoshida &lt;mitsuru@riken.go.jp&gt;<br />
#<br />
# $FreeBSD: ports/www/tinyproxy/Makefile,v 1.30 2009/10/19 18:41:40 wxs Exp $<br />
#</p>
<p>PORTNAME=       tinyproxy<br />
PORTVERSION=    1.6.5<br />
PORTEPOCH=      1<br />
CATEGORIES=     www<br />
MASTER_SITES=   https://www.banu.com/pub/tinyproxy/1.6/</p>
<p>MAINTAINER=     wxs@FreeBSD.org<br />
COMMENT=        A small, efficient HTTP proxy server</p>
<p>USE_RC_SUBR=    tinyproxy.sh<br />
GNU_CONFIGURE=  yes<br />
USE_GMAKE=      yes<br />
CONFIGURE_ARGS= --bindir=${PREFIX}/sbin \<br />
--with-config=${PREFIX}/etc/tinyproxy.conf \<br />
--program-transform-name=""<br />
MAKE_JOBS_SAFE= yes</p>
<p>MAN8=           tinyproxy.8</p>
<p>OPTIONS=        REVERSE "Enable reverse proxy support" Off \<br />
TRANSPARENT "Enable transparent proxy" Off</p>
<p>.include &lt;bsd.port.pre.mk&gt;</p>
<p>.if defined(WITH_REVERSE)<br />
CONFIGURE_ARGS+=        --enable-reverse<br />
.endif</p>
<p>.if defined(WITH_TRANSPARENT)<br />
CONFIGURE_ARGS+=        --enable-transparent-proxy<br />
.endif</p>
<p>post-patch:<br />
@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure<br />
@${REINPLACE_CMD} -e 's|/etc/tinyproxy/tinyproxy.conf|${PREFIX}/etc/tinyproxy.conf|' \<br />
${WRKSRC}/doc/tinyproxy.8<br />
@${REINPLACE_CMD} -e 's|/usr/share/tinyproxy|${DATADIR}|' \<br />
${WRKSRC}/doc/tinyproxy.conf</p>
<p>post-install:<br />
@if [ ! -f ${PREFIX}/etc/tinyproxy.conf ]; then \<br />
${CP} -p ${PREFIX}/etc/tinyproxy.conf-dist \<br />
${PREFIX}/etc/tinyproxy.conf ; \<br />
fi</p>
<p>.include &lt;bsd.port.post.mk&gt;</p></blockquote>
<p>Be carefull, note that indentation is really important in Makefile!</p>
<p>Now just create the package by using:</p>
<blockquote><p>make package</p></blockquote>
<p>After a few seconds you'll have a pakage store in this path:</p>
<blockquote><p>/usr/ports/packages/All/tinyproxy-1.6.5,1.tbz</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2010/06/08/create-your-own-tinyproxy-freebsds-package/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

