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

(-)cbsd/Makefile (-5 / +9 lines)
Lines 1-7 Link Here
1
# $FreeBSD: head/sysutils/cbsd/Makefile 341642 2014-01-28 17:09:48Z az $
1
# $FreeBSD: sysutils/cbsd/Makefile 341642 2014-01-28 17:09:48Z az $
2
2
3
PORTNAME=	cbsd
3
PORTNAME=	cbsd
4
PORTVERSION=	10.0.1
4
PORTVERSION=	10.0.2
5
CATEGORIES=	sysutils
5
CATEGORIES=	sysutils
6
MASTER_SITES=	http://www.bsdstore.ru/downloads/ \
6
MASTER_SITES=	http://www.bsdstore.ru/downloads/ \
7
		GH
7
		GH
Lines 16-27 Link Here
16
		sqlite3:${PORTSDIR}/databases/sqlite3
16
		sqlite3:${PORTSDIR}/databases/sqlite3
17
LIB_DEPENDS=	libssh2.so:${PORTSDIR}/security/libssh2
17
LIB_DEPENDS=	libssh2.so:${PORTSDIR}/security/libssh2
18
18
19
IGNORE=		Fails to work properly
20
21
USE_GITHUB=	yes
19
USE_GITHUB=	yes
22
GH_ACCOUNT=	olevole
20
GH_ACCOUNT=	olevole
23
GH_PROJECT=	cbsd
21
GH_PROJECT=	cbsd
24
GH_COMMIT=	ff6e7ea
22
GH_TAGNAME=	10.0.2
23
GH_COMMIT=	6e05bd1
24
25
USE_RC_SUBR=	cbsdd cbsdrsyncd
25
26
26
SUB_FILES=	pkg-message
27
SUB_FILES=	pkg-message
27
PLIST_FILES+=	man/man8/cbsd.8.gz
28
PLIST_FILES+=	man/man8/cbsd.8.gz
Lines 30-35 Link Here
30
31
31
.include <bsd.port.pre.mk>
32
.include <bsd.port.pre.mk>
32
33
34
USERS=	${PORTNAME}
35
GROUPS=	${PORTNAME}
36
33
.if ${OSVERSION} < 901000
37
.if ${OSVERSION} < 901000
34
IGNORE=	does not work on FreeBSD < 9.1
38
IGNORE=	does not work on FreeBSD < 9.1
35
.endif
39
.endif
(-)cbsd/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (cbsd-10.0.1.tar.gz) = a4475238ecf1f05752ddccfd514afe9dcd151c580ddba29dfee467c80193050f
1
SHA256 (cbsd-10.0.2.tar.gz) = 3cce46368bcd0e9e5c4f8aec8219059fcc71b0709155d5dfb029d7b9a1ed4547
2
SIZE (cbsd-10.0.1.tar.gz) = 1752119
2
SIZE (cbsd-10.0.2.tar.gz) = 325560
(-)cbsd/files/cbsdd.in (+60 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# PROVIDE: cbsdd
4
# REQUIRE: LOGIN FILESYSTEMS sshd
5
# KEYWORD: shutdown
6
#
7
# cbsdd_enable="YES"
8
#
9
10
. /etc/rc.subr
11
12
name=cbsdd
13
rcvar=cbsdd_enable
14
load_rc_config $name
15
16
: ${cbsdd_enable="NO"}
17
18
export workdir="${cbsd_workdir}"
19
globalconf=${cbsd_globalconf:-"${workdir}/cbsd.conf"}
20
21
if [ ! -f ${globalconf} ]; then
22
    echo "cbsd: no such ${globalconf}";
23
    exit 1
24
fi
25
26
. ${globalconf}
27
. ${inventory}
28
. ${mdtools}
29
. ${subr}
30
31
if [ ! -f ${localcbsdconf} ]; then
32
    echo "cbsd: no such ${localcbsdconf}";
33
    exit 1
34
fi
35
36
. ${localcbsdconf}
37
38
start_precmd=${name}_prestart
39
stop_precmd=${name}_prestop
40
41
command="${sbindir}/cbsdd"
42
pidfile="/var/run/$name.pid"
43
44
cbsdd_prestart() {
45
    find ${ftmpdir} -depth 1 -maxdepth 1 -type f -exec rm -f {} \;
46
    %%PREFIX%%/bin/cbsd sysinv mode=update
47
48
    . ${inventory}
49
50
    [ -n "$nat_enable" ] && %%PREFIX%%/bin/cbsd naton
51
    /usr/sbin/daemon ${rcddir}/jails-astart start
52
}
53
54
cbsdd_prestop()
55
{
56
    ${rcddir}/jails-astart stop
57
    [ -n "${nat_enable}" ] && %%PREFIX%%/bin/cbsd natoff
58
}
59
60
run_rc_command "$1"
(-)cbsd/files/cbsdrsyncd.in (+27 lines)
Line 0 Link Here
1
#!/bin/sh
2
# PROVIDE: cbsdrsyncd
3
# REQUIRE: LOGIN
4
# KEYWORD: shutdown
5
6
# cbsdrsyncd_enable="YES"
7
# cbsdrsyncd_flags="<set as needed>"
8
#
9
# See rsync(1) for cbsdrsyncd_flags
10
#
11
12
. /etc/rc.subr
13
. /etc/rc.conf
14
15
name="cbsdrsyncd"
16
rcvar=cbsdrsyncd_enable
17
18
command="%%PREFIX%%/bin/rsync"
19
command_args="--daemon"
20
pidfile="/var/run/$name.pid"
21
required_files="${cbsd_workdir}/etc/$name.conf"
22
23
# read configuration and set defaults
24
load_rc_config "$name"
25
: ${cbsdrsyncd_enable="NO"}
26
27
run_rc_command "$1"
(-)cbsd/pkg-deinstall (+31 lines)
Line 0 Link Here
1
#!/bin/sh
2
case $2 in
3
POST-DEINSTALL)
4
    echo
5
    echo "The cbsd package has been deleted."
6
    echo "If you're *not* upgrading and won't be using it any longer, you may want to"
7
    echo "check some files in the system which could modify by cbsd and remove this"
8
    echo "changes for complete deinstall. Specifically:"
9
    echo
10
    echo "1) follow records in the /var/cron/tabs/root file:"
11
    echo "* * * * * /usr/bin/lockf -s -t0 \$workdir/ftmp/periodic_minutes \\"
12
    echo "/usr/sbin/periodic minutes > /dev/null 2>&1"
13
    echo "0 * * * * /usr/bin/lockf -s -t0 \$workdir/ftmp/periodic_hourly \\"
14
    echo "/usr/sbin/periodic hourly > /dev/null 2>&1"
15
    echo
16
    echo "2) follow record in the /etc/periodic.conf file:"
17
    echo "local_periodic=\"/usr/local/etc/periodic \$workdir/etc/periodic\""
18
    echo
19
    echo "3) follow records in the /etc/rc.conf file:"
20
    echo "cbsdrsyncd_enable=\"YES\""
21
    echo "cbsdrsyncd_flags=\"--config=\$workdir/etc/rsyncd.conf\""
22
    echo "cbsdd_enable=\"YES\""
23
    echo "devfs_load_rulesets=\"YES\""
24
    echo "cbsd_workdir=\"/usr/jails\""
25
    echo "rcshutdown_timeout=\"900\""
26
    echo "sshd_flags=\"-oPort=22222\""
27
    echo
28
    echo "4) /usr/local/etc/sudoers.d/cbsd_sudoers file"
29
    echo
30
  ;;
31
esac

Return to bug 186344