Skip to content
Permalink
Browse files

Bug:

Submitted by:   jmpp@
Reviewed by:    jmpp@
Approved by:    jmpp@
Obtained from:

Change maintainer address to my brand new @opendarwin.org one, woot!
Add NetWVers variable of my own to help keep the three ports in the NetW bundle in synch
Rework pre-configure reinplaces (thanks Laurent for the ideas and Jordan for the proper syntax!)
Move html documentation from share/doc/${name} to share/doc/${name}/html
General re-tabbing
Uprev the Portfile

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@9271 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jmpalacios committed Nov 13, 2004
1 parent eb68f68 commit f919835b8e1fca1ae05300a9787252174eced8df
Showing with 22 additions and 18 deletions.
  1. +22 −18 net/netwib/Portfile
@@ -1,19 +1,22 @@
# $Id: Portfile,v 1.2 2004/10/28 22:05:32 mww Exp $
# $Id: Portfile,v 1.3 2004/11/13 01:31:47 jmpp Exp $

PortSystem 1.0

name netwib
version 5.26.0
categories net
platforms darwin
maintainers jmpalacios@ml1.net
description A network library oriented towards developers.
long_description Netwib is a network library providing network features \
such as address conversion, udp/tcp clients/servers, packet \
encoding/decoding/displaying, spoofing, sniffing, etc., and \
general features such as data conversion, linked list and \
hash, portable threads, etc. Using all these functions, a \
network program can be quickly created.
name netwib
version 5.26.0
revision 1
set NetWVers 526
categories net
platforms darwin
maintainers jmpp@opendarwin.org

description A network library oriented towards developers.
long_description Netwib is a network library providing network features \
such as address conversion, udp/tcp clients/servers, packet \
encoding/decoding/displaying, spoofing, sniffing, etc., and \
general features such as data conversion, linked list and \
hash, portable threads, etc. Using all these functions, a \
network program can be quickly created.

homepage http://www.laurentconstantin.com/
master_sites ${homepage}common/netw/${name}/download/v5/ \
@@ -32,18 +35,19 @@ worksrcdir ${distname}-src/src
pre-configure {
cd ${worksrcpath}
reinplace "s|/usr/local|${prefix}|g" config.dat
reinplace "s|\\(NETWIBDEF_PROGCC_INC=\\)\"\"|\\1-I${prefix}/include|g" config.dat
reinplace "s|\\(NETWIBDEF_PROGCC_LIB=\\)\"\"|\\1-L${prefix}/lib|g" config.dat
reinplace "s|/man|/share/man|g" config.dat
reinplace "s|/share/man3|/man3|g" config.dat
reinplace "s|/usr/local|${prefix}|g" genemake
reinplace "s|/usr/include/pcap/|${prefix}/include/pcap/|g" genemake
reinplace "s|/usr/include/pcap/|${prefix}/include/pcap|g" genemake
}

configure.pre_args
configure.pre_args {}
configure.cmd ./genemake

post-destroot {
xinstall -d -m 755 ${destroot}${prefix}/share/doc/
file copy ${workpath}/${distname}-doc_html ${destroot}${prefix}/share/doc/${name}
xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
file copy ${workpath}/${distname}-doc_html ${destroot}${prefix}/share/doc/${name}/html
xinstall -m 644 -v -W ${worksrcpath}/../doc/ changelog.txt credits.txt \
guidestyle.txt todo.txt ${destroot}${prefix}/share/doc/${name}/
}

0 comments on commit f919835

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