View | Details | Raw Unified | Return to bug 267723 | Differences between
and this patch

Collapse All | Expand All

(-)b/net/eap_parrot/Makefile (+39 lines)
Added Link Here
1
PORTNAME=		eap_parrot
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=		1.0.8
4
CATEGORIES=		net
5
DISTNAME=		eap_parrot-${ISCVERSION}
6
7
MAINTAINER=		mark@CloudBSD.org
8
COMMENT=		Replay EAP packets between network interfaces
9
WWW=			https://github.com/cloudbsdorg/eap_parrot
10
11
LICENSE=		GPLv3
12
LICENSE_FILE=		${WRKSRC}/LICENSE
13
14
BUILD_DEPENDS=		go119:lang/go119
15
16
MASTER_SITES=		GH
17
USE_GITHUB=		yes
18
GL_SITE=		https://github.com
19
GH_ACCOUNT=		cloudbsdorg
20
GH_PROJECT=		eap_parrot
21
22
USE_RC_SUBR=		eap_parrot
23
24
pre-install:
25
	echo "${LOCALBASE} ${PREFIX}"
26
	# make sure that the dirs exist
27
	${MKDIR} ${STAGEDIR}${LOCALBASE}/bin/
28
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/eap_parrot/
29
	${MKDIR} ${STAGEDIR}${PREFIX}/man/man1/
30
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/rc.d/
31
32
	# Place the files in staging
33
	${CP} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/bin/eap_parrot ${STAGEDIR}${PREFIX}/bin/eap_parrot
34
	${CP} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/config.toml.sample ${STAGEDIR}${PREFIX}/etc/eap_parrot/config.toml.sample
35
	${CP} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/man/man1/eap_parrot.1.gz ${STAGEDIR}${PREFIX}/man/man1/
36
	${CP} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/init/FreeBSD/eap_parrot ${STAGEDIR}${PREFIX}/etc/rc.d/
37
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/eap_parrot
38
39
.include <bsd.port.mk>
(-)b/net/eap_parrot/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1668141260
2
SHA256 (cloudbsdorg-eap_parrot-v1.0.8_GH0.tar.gz) = d0687f1a5e8816eb9b7c852611fa8fbe767e7f6be48c262f35b034120083b8d3
3
SIZE (cloudbsdorg-eap_parrot-v1.0.8_GH0.tar.gz) = 21321
(-)b/net/eap_parrot/files/eap_parrot.in (+37 lines)
Added Link Here
1
#!/bin/sh
2
3
# EAP Parrot startup script
4
5
# PROVIDE: eap_parrot
6
# REQUIRE: LOGIN
7
# KEYWORD: shutdown
8
9
# Add the following to /etc/rc.conf[.local] to enable this service
10
#
11
# eap_parrot_enable (bool):	Set to NO by default.
12
#               		Set it to YES to enable eap_parrot.
13
# eap_parrot_config (string):   Set the path to the configuration file.
14
#
15
16
. /etc/rc.subr
17
desc="Extensible Authentication Protocol Parrot"
18
name=eap_parrot
19
rcvar=eap_parrot_enable
20
21
load_rc_config ${name}
22
23
: ${eap_parrot_enable:=NO}
24
: ${eap_parrot_config:=${_localbase}/etc/eap_parrot/config.toml}
25
26
command=${_localbase}/bin/${name}
27
start_cmd=eap_parrot_start
28
29
eap_parrot_start()
30
{
31
	echo "Starting EAP Parrot."
32
	${command} -config ${eap_parrot_config}  >/dev/null 2>&1 &
33
	echo "EAP Parrot started."
34
35
}
36
37
run_rc_command "$1"
(-)b/net/eap_parrot/pkg-descr (+6 lines)
Added Link Here
1
eap_parrot is a network utility that relays packets between network
2
interfaces used by the Extensible Authentication Protocol over LAN
3
protocol for a man in the middle authentication with an ISP to
4
create one's own primary router.
5
6
LICENSE: GPL3
(-)b/net/eap_parrot/pkg-message (+22 lines)
Added Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
===================================
5
COMPLETING EAP PARROT INSTALLATION
6
===================================
7
8
1) Create a configuration file. There is a sample file at ${LOCALBASE}/etc/eap_parrot/config.toml.sample.
9
- You can copy  ${LOCALBASE}/etc/eap_parrot/config.toml.sample to ${LOCALBASE}/etc/eap_parrot/config.toml and
10
  Just make sure the network interfaces are correct.
11
12
2) Enable the EAP Parrot service:
13
   > service eap_parrot enable
14
15
3) Start EAP Parrot:
16
   > service eap_parrot start
17
18
19
Enjoy!
20
EOM
21
}
22
]
(-)b/net/eap_parrot/pkg-plist (-1 / +3 lines)
Added Link Here
0
- 
1
bin/eap_parrot
2
@sample etc/eap_parrot/config.toml.sample
3
man/man1/eap_parrot.1.gz

Return to bug 267723