svn commit: r389363 - in head/net/p5-Net-ARP: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Jun 13 13:51:31 UTC 2015
Author: sunpoet
Date: Sat Jun 13 13:51:28 2015
New Revision: 389363
URL: https://svnweb.freebsd.org/changeset/ports/389363
Log:
- Add LICENSE
- Strip shared library
- Regenerate patch files with makepatch:
- Reformat pkg-descr
- Bump PORTREVISION for package change
- Take maintainership
Modified:
head/net/p5-Net-ARP/Makefile
head/net/p5-Net-ARP/files/patch-ARP.xs
head/net/p5-Net-ARP/files/patch-arp.h
head/net/p5-Net-ARP/files/patch-arp_lookup_bsd.c
head/net/p5-Net-ARP/files/patch-ppport.h
head/net/p5-Net-ARP/files/patch-send_packet_bsd.c
head/net/p5-Net-ARP/pkg-descr
Modified: head/net/p5-Net-ARP/Makefile
==============================================================================
--- head/net/p5-Net-ARP/Makefile Sat Jun 13 13:51:23 2015 (r389362)
+++ head/net/p5-Net-ARP/Makefile Sat Jun 13 13:51:28 2015 (r389363)
@@ -3,17 +3,24 @@
PORTNAME= Net-ARP
PORTVERSION= 1.0.8
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= sunpoet at FreeBSD.org
COMMENT= Perl extension for creating ARP packets
+LICENSE= GPLv2
+
BUILD_DEPENDS= p5-Net-Pcap>=0:${PORTSDIR}/net/p5-Net-Pcap
USES= perl5 tar:tgz
USE_PERL5= configure
+post-install:
+ ${CHMOD} u+w ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Net/ARP/ARP.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Net/ARP/ARP.so
+ ${CHMOD} u-w ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Net/ARP/ARP.so
+
.include <bsd.port.mk>
Modified: head/net/p5-Net-ARP/files/patch-ARP.xs
==============================================================================
--- head/net/p5-Net-ARP/files/patch-ARP.xs Sat Jun 13 13:51:23 2015 (r389362)
+++ head/net/p5-Net-ARP/files/patch-ARP.xs Sat Jun 13 13:51:28 2015 (r389363)
@@ -1,6 +1,6 @@
---- ARP.xs.orig 2009-05-04 16:08:52.000000000 -0700
-+++ ARP.xs 2009-05-04 16:08:58.000000000 -0700
-@@ -27,7 +27,6 @@
+--- ARP.xs.orig 2013-06-24 05:15:16 UTC
++++ ARP.xs
+@@ -27,7 +27,6 @@ See the GNU General Public License for m
#include <string.h>
#include <errno.h>
#include <net/ethernet.h>
Modified: head/net/p5-Net-ARP/files/patch-arp.h
==============================================================================
--- head/net/p5-Net-ARP/files/patch-arp.h Sat Jun 13 13:51:23 2015 (r389362)
+++ head/net/p5-Net-ARP/files/patch-arp.h Sat Jun 13 13:51:28 2015 (r389363)
@@ -1,8 +1,11 @@
---- arp.h.orig 2007-08-16 09:38:44.000000000 +0200
-+++ arp.h 2008-06-24 14:47:24.000000000 +0200
-@@ -54,5 +54,3 @@
+--- arp.h.orig 2013-06-24 05:14:10 UTC
++++ arp.h
+@@ -58,8 +58,6 @@ struct my_arphdr {
u_char dest_add[ETH_ALEN]; // dest mac
u_char dest_ip[IP_ALEN]; // dest ip
};
-
-extern struct ether_addr *ether_aton (__const char *__asc) __THROW;
+ extern int get_mac_linux(const char *dev, char *mac);
+ extern int get_mac_bsd(const char *dev, char *mac);
+ extern int arp_lookup_linux(const char *dev, const char *ip, char *mac);
Modified: head/net/p5-Net-ARP/files/patch-arp_lookup_bsd.c
==============================================================================
--- head/net/p5-Net-ARP/files/patch-arp_lookup_bsd.c Sat Jun 13 13:51:23 2015 (r389362)
+++ head/net/p5-Net-ARP/files/patch-arp_lookup_bsd.c Sat Jun 13 13:51:28 2015 (r389363)
@@ -1,6 +1,6 @@
---- arp_lookup_bsd.c.orig 2006-09-20 11:19:00.000000000 +0200
-+++ arp_lookup_bsd.c 2008-06-24 14:57:10.000000000 +0200
-@@ -18,6 +18,8 @@
+--- arp_lookup_bsd.c.orig 2009-05-23 11:11:58 UTC
++++ arp_lookup_bsd.c
+@@ -18,6 +18,8 @@ FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
*/
Modified: head/net/p5-Net-ARP/files/patch-ppport.h
==============================================================================
--- head/net/p5-Net-ARP/files/patch-ppport.h Sat Jun 13 13:51:23 2015 (r389362)
+++ head/net/p5-Net-ARP/files/patch-ppport.h Sat Jun 13 13:51:28 2015 (r389363)
@@ -1,6 +1,6 @@
---- ppport.h.orig 2008-06-24 12:35:16.000000000 +0000
-+++ ppport.h 2008-06-24 12:35:40.000000000 +0000
-@@ -220,6 +220,7 @@
+--- ppport.h.orig 2009-06-20 19:10:51 UTC
++++ ppport.h
+@@ -211,6 +211,7 @@ __DATA__
/* Replace: 0 */
#endif
Modified: head/net/p5-Net-ARP/files/patch-send_packet_bsd.c
==============================================================================
--- head/net/p5-Net-ARP/files/patch-send_packet_bsd.c Sat Jun 13 13:51:23 2015 (r389362)
+++ head/net/p5-Net-ARP/files/patch-send_packet_bsd.c Sat Jun 13 13:51:28 2015 (r389363)
@@ -1,6 +1,6 @@
---- send_packet_bsd.c.orig 2009-05-04 16:27:55.000000000 -0700
-+++ send_packet_bsd.c 2009-05-04 16:28:43.000000000 -0700
-@@ -56,7 +56,13 @@
+--- send_packet_bsd.c.orig 2009-05-23 11:11:58 UTC
++++ send_packet_bsd.c
+@@ -56,7 +56,13 @@ int send_packet_bsd(const char *dev, u_c
flock(bpffd,LOCK_EX);
// Bind it to a device
Modified: head/net/p5-Net-ARP/pkg-descr
==============================================================================
--- head/net/p5-Net-ARP/pkg-descr Sat Jun 13 13:51:23 2015 (r389362)
+++ head/net/p5-Net-ARP/pkg-descr Sat Jun 13 13:51:28 2015 (r389363)
@@ -1,4 +1,4 @@
-This module can be used to create and send ARP packets and to get
-the mac address of an ethernet interface or ip address.
+Net::ARP can be used to create and send ARP packets and to get the mac address
+of an ethernet interface or IP address.
WWW: http://search.cpan.org/dist/Net-ARP/
More information about the svn-ports-head
mailing list