net-mgmt/cdpd: Fix runtime on armv6
While here, pet portlint and define the 2-clause BSD license PR: 208216 Submitted by: Mikael Urankar (gmail)
This commit is contained in:
parent
51194e7e6a
commit
f7502b66bb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420640
2 changed files with 16 additions and 1 deletions
|
@ -3,14 +3,18 @@
|
|||
|
||||
PORTNAME= cdpd
|
||||
PORTVERSION= 1.0.4.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= http://snar.spb.ru/prog/cdpd/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Daemon to send CDP/LLDP announces over ethernet
|
||||
|
||||
LICENSE= BSD2CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
||||
|
||||
USES= tar:tgz
|
||||
GNU_CONFIGURE= yes
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
USE_RC_SUBR= cdpd
|
||||
PLIST_FILES= sbin/cdpd man/man8/cdpd.8.gz
|
||||
|
|
11
net-mgmt/cdpd/files/patch-cdpd.c
Normal file
11
net-mgmt/cdpd/files/patch-cdpd.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- cdpd.c.orig 2016-03-22 18:37:16 UTC
|
||||
+++ cdpd.c
|
||||
@@ -606,7 +606,7 @@ cdp_debug_packet(struct cdp_interface* c
|
||||
int
|
||||
main(int argc, char* argv[])
|
||||
{
|
||||
- char c;
|
||||
+ int c;
|
||||
int timeout=60, ret=0;
|
||||
unsigned char buffer[1600];
|
||||
int offset;
|
Loading…
Reference in a new issue