View | Details | Raw Unified | Return to bug 240547
Collapse All | Expand All

(-)courier-sox/Makefile (+2 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	courier-sox
4
PORTNAME=	courier-sox
5
DISTVERSION=	0.12.20180428
5
DISTVERSION=	0.12.20180428
6
PORTREVISION=	1
6
CATEGORIES=	net
7
CATEGORIES=	net
7
MASTER_SITES=	SF/courier/sox-devel/${DISTVERSION:E}
8
MASTER_SITES=	SF/courier/sox-devel/${DISTVERSION:E}
8
9
Lines 26-31 Link Here
26
27
27
GNU_CONFIGURE=	yes
28
GNU_CONFIGURE=	yes
28
INSTALL_TARGET=	install-strip
29
INSTALL_TARGET=	install-strip
30
USE_RC_SUBR=	sockd
29
TEST_TARGET=	check
31
TEST_TARGET=	check
30
32
31
post-stage:
33
post-stage:
(-)courier-sox/files/sockd.in (+57 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# Copyright (c) 2019 Radim Kolar
4
# All rights reserved.
5
#
6
# Redistribution and use in source and binary forms, with or without
7
# modification, are permitted provided that the following conditions are met:
8
#
9
#  * Redistributions of source code must retain the above copyright notice,
10
#    this list of conditions and the following disclaimer.
11
#  * Redistributions in binary form must reproduce the above copyright
12
#    notice, this list of conditions and the following disclaimer in the
13
#    documentation and/or other materials provided with the distribution.
14
#
15
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
16
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
19
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25
# DAMAGE.
26
27
# PROVIDE: socksd
28
# REQUIRE: NETWORKING
29
# KEYWORD: shutdown
30
#
31
# $FreeBSD$
32
33
. /etc/rc.subr
34
35
name="courier_sox"
36
rcvar=courier_sox_enable
37
load_rc_config $name
38
39
: ${courier_sox_enable:="NO"}
40
41
required_files="%%PREFIX%%/sbin/sockd"
42
pidfile=/var/run/sockd.pid
43
procname="%%LOCALBASE%%/sbin/courierlogger"
44
start_cmd="sockd_start_cmd"
45
stop_cmd="sockd_stop_cmd"
46
47
sockd_start_cmd() {
48
    if checkyesno $rcvar; then
49
        $required_files start
50
    fi
51
}
52
53
sockd_stop_cmd() {
54
    $required_files stop
55
}
56
57
run_rc_command "$1"
(-)courier-sox/pkg-plist (+1 lines)
Lines 1-3 Link Here
1
etc/rc.d/sockd
1
bin/mkbl4
2
bin/mkbl4
2
bin/socksify
3
bin/socksify
3
@sample etc/socksrc/system.sample
4
@sample etc/socksrc/system.sample

Return to bug 240547