Skip to content
Permalink
Browse files

New port: 3proxy, a tiny free proxy server (https://trac.macports.org…

  • Loading branch information
jmroot committed Jun 13, 2010
1 parent 6d61c7f commit b3a343a9ce9d613b49476eae0ada45bd1307b0d7
Showing with 54 additions and 0 deletions.
  1. +34 −0 net/3proxy/Portfile
  2. +20 −0 net/3proxy/files/Makefile.unix-install.diff
@@ -0,0 +1,34 @@
# $Id$

PortSystem 1.0

name 3proxy
version 0.6.1
categories net
platforms darwin
maintainers mail.ru:nano103
description tiny free proxy server
long_description 3proxy is a universal proxy server. It can be used \
to provide internal users with fully controllable \
access to external resources or to provide external \
users with access to internal resources.
homepage http://3proxy.ru/
master_sites ${homepage}${version}/

extract.suffix .tgz

checksums md5 03790467a12e16ed8785ae688ecf9b68 \
sha1 07e3f687585c6281847316b0f9220c5b071b3dde \
rmd160 9c0394401f31341e09f653a709ca0392c9451e32

patchfiles Makefile.unix-install.diff
post-patch {
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Makefile.unix-install
reinplace "s/-O2/-O2 ${configure.cc_archflags}/g" ${worksrcpath}/Makefile.unix
}

use_configure no

build.args -f Makefile.unix CC="${configure.cc}" \
LN="${configure.cc}"
destroot.args -f Makefile.unix-install
@@ -0,0 +1,20 @@
--- Makefile.unix-install.orig 2007-03-01 18:12:14.000000000 +0300
+++ Makefile.unix-install 2010-05-24 19:37:24.000000000 +0400
@@ -1,5 +1,5 @@
DESTDIR =
-prefix = /usr/local
+prefix = __PREFIX__
exec_prefix = $(prefix)
man_prefix = $(prefix)/share

@@ -50,10 +50,8 @@
done;

install-man:
- $(INSTALL_BIN) -d $(MANDIR1)
$(INSTALL_BIN) -d $(MANDIR3)
$(INSTALL_BIN) -d $(MANDIR8)
- $(INSTALL_DATA) man/*.1 $(MANDIR1)
$(INSTALL_DATA) man/*.3 $(MANDIR3)
$(INSTALL_DATA) man/*.8 $(MANDIR8)

0 comments on commit b3a343a

Please sign in to comment.
You can’t perform that action at this time.