[OpenBSD-BR] NEW: net/pftabled

Vagner Rodrigues Fernandes vagner em vrodrigues.com
Quinta Agosto 30 17:26:24 BRT 2007


Giancarlo Rubio wrote:
> Srs:
>
> Criei meu primeiro port para o open, aqueles que puderem testar eu
> serei muito grato.
> http://www.openbsd-br.org/ports/pftabled.tar.gz
>
> Att
>   
[- root em vagner -]# tar -zxvf pftabled.tar.gz -C /
usr/ports/net/pftabled
usr/ports/net/pftabled/Makefile
usr/ports/net/pftabled/patches
usr/ports/net/pftabled/patches/patch-Makefile_in
usr/ports/net/pftabled/distinfo
usr/ports/net/pftabled/pkg
usr/ports/net/pftabled/pkg/PLIST
usr/ports/net/pftabled/pkg/DESCR
[- root em vagner -]# cd /usr/ports/net/pftabled/
[- root em vagner -]# ls
Makefile  distinfo  patches  pkg
[- root em vagner -]# make install
===>  Checking files for pftabled-1.06
 >> pftabled-1.06.tar.gz doesn't seem to exist on this system.
 >> Fetch http://www.wolfermann.org/pftabled-1.06.tar.gz.
100% 
|**************************************************************************************************************************************************************************| 
45174       00:01
 >> Size matches for /usr/ports/distfiles/pftabled-1.06.tar.gz
 >> Checksum OK for pftabled-1.06.tar.gz. (sha1)
===>  Extracting for pftabled-1.06
===>  Patching for pftabled-1.06
===>  Configuring for pftabled-1.06
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for a BSD-compatible install... /usr/bin/install -c -o root -g bin
checking for an ANSI C-conforming const... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdint.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for /usr/include/net/pfvar.h... yes
building on pf platform: client and server
checking for gethostbyname... yes
checking for socket... yes
checking for inet_pton... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h

Configured successfully. Now run make.

===>  Building for pftabled-1.06
cc -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual 
-Wsign-compare  -c pftabled-client.c
cc -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual 
-Wsign-compare  -c hmac.c
cc -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual 
-Wsign-compare  -c sha1.c
cc  -o pftabled-client pftabled-client.o hmac.o sha1.o
cc -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual 
-Wsign-compare  -c pftabled.c
cc  -o pftabled pftabled.o hmac.o sha1.o
nroff -Tascii -man pftabled.1 > pftabled.cat1
===>  Faking installation for pftabled-1.06
install -c -o root -g bin -m 444 -s -m 555 
/usr/ports/net/pftabled/w-pftabled-1.06/pftabled-1.06/pftabled-client 
/usr/ports/net/pftabled/w-pftabled-1.06/fake-i386/usr/local/bin/pftabled-client
install -c -o root -g bin -m 444 -s -m 555 
/usr/ports/net/pftabled/w-pftabled-1.06/pftabled-1.06/pftabled 
/usr/ports/net/pftabled/w-pftabled-1.06/fake-i386/usr/local/sbin/pftabled
install -c -o root -g bin -m 444 -m 444 
/usr/ports/net/pftabled/w-pftabled-1.06/pftabled-1.06/pftabled.1 
/usr/ports/net/pftabled/w-pftabled-1.06/fake-i386/usr/local/man/man1/pftabled.1
===>  Building package for pftabled-1.06
Create /usr/ports/packages/i386/all/pftabled-1.06.tgz
Link to /usr/ports/packages/i386/ftp/pftabled-1.06.tgz
Link to /usr/ports/packages/i386/cdrom/pftabled-1.06.tgz
===>  Installing pftabled-1.06 from /usr/ports/packages/i386/all/
pftabled-1.06: complete
[- root em vagner -]# pf
pfbtops          pfctl            pflogd           pftabled-client
[- root em vagner -]# pftabled-client

Usage: pftabled-client [-k keyfile] host port table cmd [ip[/mask]]

host      Host where pftabled is running
port      Port number at host
table     Name of table
cmd       One of: add, del or flush.
ip[/mask] IP or network to add or delete from table
keyfile   Name of file to read key from

[- root em vagner -]#


Mais detalhes sobre a lista de discussão OpenBSD