diff options
author | wxs <wxs@FreeBSD.org> | 2010-07-17 09:06:45 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2010-07-17 09:06:45 +0800 |
commit | e672bc99178060338f93093cd88c0536ea2b6843 (patch) | |
tree | 8d9f2038d61da713a2622b01bbb543bf45ad509b /sysutils | |
parent | fe63b06a3c416565d0fe48bb3a5028c45ab338e8 (diff) | |
download | freebsd-ports-gnome-e672bc99178060338f93093cd88c0536ea2b6843.tar.gz freebsd-ports-gnome-e672bc99178060338f93093cd88c0536ea2b6843.tar.zst freebsd-ports-gnome-e672bc99178060338f93093cd88c0536ea2b6843.zip |
Remove the -devel versions of these ports. They are woefully outdated.
Approved by: Dan Langille <dan@langille.org> (maintainer, via IRC)
Diffstat (limited to 'sysutils')
23 files changed, 0 insertions, 1106 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index e2dca6c5de54..1a13a328fcc4 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -50,10 +50,8 @@ SUBDIR += backupme SUBDIR += bacula-bat SUBDIR += bacula-client - SUBDIR += bacula-client-devel SUBDIR += bacula-docs SUBDIR += bacula-server - SUBDIR += bacula-server-devel SUBDIR += bacula2-client SUBDIR += bacula2-server SUBDIR += bashburn diff --git a/sysutils/bacula-client-devel/Makefile b/sysutils/bacula-client-devel/Makefile deleted file mode 100644 index e81e59166a4d..000000000000 --- a/sysutils/bacula-client-devel/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# New ports collection makefile for: bacula -# Date created: 5 March 2006 -# Whom: Dan Langille <dan@langille.org> -# -# $FreeBSD$ -# - - -PORTNAME= bacula -PORTREVISION= 1 -PKGNAMESUFFIX= -client-devel - -MASTERDIR= ${.CURDIR}/../bacula-server-devel - -COMMENT= The network backup solution (client) - DEVELOPMENT Version -PLIST= ${PKGDIR}/pkg-plist.client - -WITH_CLIENT_ONLY= yes -USE_RC_SUBR= bacula-fd - -.include "${MASTERDIR}/Makefile" diff --git a/sysutils/bacula-server-devel/Makefile b/sysutils/bacula-server-devel/Makefile deleted file mode 100644 index 904347aa4941..000000000000 --- a/sysutils/bacula-server-devel/Makefile +++ /dev/null @@ -1,310 +0,0 @@ -# New ports collection makefile for: bacula -# Date created: 5 March 2006 -# Whom: Dan Langille <dan@langille.org> -# -# $FreeBSD$ -# - -PORTNAME= bacula -DISTVERSION= 2.5.42-b2 -PORTREVISION= 2 -CATEGORIES= sysutils -MASTER_SITES= SF/bacula/OldFiles -PKGNAMESUFFIX?= -server-devel -MAINTAINER= dan@langille.org -COMMENT?= The network backup solution (server) - DEVELOPMENT Version - -CONFLICTS= bacula-server-[0-9]* bacula-client-[0-9]* - -UNIQUENAME?=${PORTNAME}${PKGNAMESUFFIX} -.if !defined(WITH_BAT) -.if !defined(WITH_CLIENT_ONLY) -USE_RC_SUBR?= bacula-dir bacula-sd -.endif - - -.if defined(WITH_CLIENT_ONLY) -SUB_FILES+= pkg-message.client -.else -SUB_FILES+= pkg-message.server -.endif -.endif - -# The user/group IDs below are registered, see -# http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#DADS-UID -# -BACULA_DIR?=/var/db/bacula -# -MANCOMPRESSED= yes -GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --with-tcp-wrappers=/usr/lib \ - --enable-smartalloc \ - --with-working-dir=${BACULA_DIR} \ - --with-scriptdir=${PREFIX}/share/${PORTNAME} \ - --docdir=${DOCSDIR} \ - --htmldir=${DOCSDIR} \ - --with-readline=yes \ - --disable-conio \ - --enable-batch-insert \ - --with-plugindir=${LOCALBASE}/lib \ - --with-libdir=${PREFIX}lib/bacula \ - --with-dump-email=root@localhost \ - --with-job-email=root@localhost \ - --with-db-name=bacula \ - --with-db-user=bacula \ - --with-baseport=9101 - -.if defined(WITH_CLIENT_ONLY) -CONFIGURE_ARGS+= --with-fd-user=root \ - --with-fd-group=wheel -.else -CONFIGURE_ARGS+=--with-dir-user=bacula \ - --with-dir-group=bacula \ - --with-sd-user=bacula \ - --with-sd-group=operator -.endif - -CONFIGURE_ENV+= CPPFLAGS="-I/usr/include/readline -I${LOCALBASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib" \ - PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ - PTHREAD_LIBS="${PTHREAD_LIBS}" - -.for opt in ${ALL_OPTIONS} -.if defined(WITH_${opt}) -BATCH= yes -.endif -.endfor - -.if !defined(BATCH) -IS_INTERACTIVE= yes -.endif - -.if defined(WITH_CLIENT_ONLY) -OPTIONS= WXCONSOLE "Build with wxGTK based GUI console: deprecated" off -OPTIONS+= GNOMECONSOLE "Build with GNOME based GUI console: deprecated" off -.elif defined(WITH_BAT) -OPTIONS= -.else -OPTIONS= SQLITE3 "Use SqLite-3 database instead of SqLite-2" off -OPTIONS+= MYSQL "Use MySQL database instead of SqLite" off -OPTIONS+= POSTGRESQL "Use PostgreSQL database instead of SqLite" off -OPTIONS+= MTX "Install mtx for control of autochanger devices" off -.endif - -OPTIONS+= NLS "Native Language Support via gettext utilities" on -OPTIONS+= OPENSSL "Enable OpenSSL for encrypted communication" off - -# Prepare if bgnome-console is selected this must be happen before -# include of bsd.port.pre.mk! -WANT_GNOME= yes -.if defined(WITH_GNOMECONSOLE) -USE_GNOME= libgnome gnomelibs libgnomeui -.endif - -PLIST_SUB+= BACULA_DIR=${BACULA_DIR} - -.if !defined(WITH_BAT) -PLIST_SUB+= BACULA_DIR=${BACULA_DIR} -.endif - -.include <bsd.port.pre.mk> - -.if defined(WITH_NLS) -USE_GETTEXT= yes -CONFIGURE_ARGS+= --enable-nls -.else -CONFIGURE_ARGS+= --disable-nls -.endif - -.if defined(WITH_CLIENT_ONLY) && (${OSVERSION} >= 800000) -BROKEN= Does not build due to missing llistxattr -.endif - -# Client only or full server version -.if defined(WITH_CLIENT_ONLY) -CONFFILES= fd -CONFIGURE_ARGS+= --enable-client-only - -PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.client -PKGINSTALL= ${PKGDIR}/pkg-install.client -# Build bgnome-console -.if defined(WITH_GNOMECONSOLE) -CONFIGURE_ARGS+= --enable-gnome -PLIST_SUB+= GNOMECONS="" -.else -# We didn't need GTK (it's not possible to put WANT_GNOME in an .if statement!) -WITHOUT_GNOME= yes -PLIST_SUB+= GNOMECONS="@comment " -.endif -# Build bwx-console -.if defined(WITH_WXCONSOLE) -USE_WX= 2.4 -CONFIGURE_ARGS+= --enable-wx-console -CONFIGURE_ENV+= WXCONFIG="${WX_CONFIG}" -PLIST_SUB+= WXCONS="" -.else -# We didn't need GTK (it's not possible to put WANT_GNOME in an .if statement!) -WITHOUT_GNOME= yes -PLIST_SUB+= WXCONS="@comment " -.endif -.else -# Server only Options -PLIST_SUB+= GNOMECONS="@comment " -PLIST_SUB+= WXCONS="@comment " -CONFFILES= sd dir -.if defined(WITH_MYSQL) -CONFIGURE_ARGS+= --with-mysql=yes -USE_MYSQL= yes -DBTYPE= mysql -SUB_LIST+= REQ_MYSQL=mysql REQ_PGSQL="" -.elif defined(WITH_POSTGRESQL) -USE_PGSQL= yes -CONFIGURE_ARGS+= --with-postgresql=yes -DBTYPE= postgresql -SUB_LIST+= REQ_MYSQL="" REQ_PGSQL=postgresql -.elif defined(WITH_SQLITE3) -CONFIGURE_ARGS+= --with-sqlite3=yes -LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3 -DBTYPE= sqlite3 -.else -CONFIGURE_ARGS+= --with-sqlite=yes -LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2 -DBTYPE= sqlite -.endif -PLIST_SUB+= DBTYPE=${DBTYPE} -# Install mtx -.if defined(WITH_MTX) -RUN_DEPENDS+= ${LOCALBASE}/sbin/mtx:${PORTSDIR}/misc/mtx -.endif -.endif - -.if defined(WITH_OPENSSL) -CONFIGURE_ARGS+= --with-openssl -.endif - -.if !defined(WITH_BAT) -.if defined(WITH_CLIENT_ONLY) -MAN8=bacula-fd.8 bconsole.8 -.else -MAN8=bacula.8 bacula-dir.8 bacula-sd.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 btraceback.8 dbcheck.8 -MAN1=bsmtp.1 bacula-bgnome-console.1 bacula-tray-monitor.1 bacula-bwxconsole.1 -.endif -.endif - -MAKE_ARGS+= -E MAN8 -E MAN1 -MAKE_ENV+= MAN8="${MAN8}" MAN1="${MAN1}" - -pre-everything:: -.if !defined(WITH_CLIENT_ONLY) - @${ECHO_MSG} "You may use the following build options (or make config):" - @${ECHO_MSG} "" - @${ECHO_MSG} " WITH_CLIENT_ONLY=yes if you only want the file daemon." - @${ECHO_MSG} " WITH_WXCONSOLE=yes if you only want a wxGTK based GUI console." - @${ECHO_MSG} " WITH_GNOMECONSOLE=yes if you only want a GNOME based GUI console." - @${ECHO_MSG} " WITH_MTX=yes if you want to use mtx instead of chio for autochanger control." - @${ECHO_MSG} " WITH_SQLITE3=yes if you want SqLite-3 instead of SqLite-2 as the database." -.if !defined(WITH_MYSQL) && !defined(WITH_POSTGRESQL) - @${ECHO_MSG} " WITH_MYSQL=yes if you want MySQL instead of SqLite as the database." - @${ECHO_MSG} " WITH_POSTGRESQL=yes if you want PostgreSQL instead of SqLite as the database." - @${ECHO_MSG} "" - @${ECHO_MSG} "The default DB is SQLite-2!" -.endif - @${ECHO_MSG} " WITH_OPENSSL=yes Enable OpenSSL for encrypted communication." - @${ECHO_MSG} "" - @${ECHO_MSG} "===> Using ${DBTYPE} as the bacula database." - @${ECHO_MSG} "" -.else - @${ECHO_MSG} "===> Building file daemon only." -.endif - -post-patch: -# Default bconsole.conf is ${PREFIX}/etc - @${REINPLACE_CMD} -e 's|./bconsole.conf|${PREFIX}/etc/bconsole.conf|g' ${WRKSRC}/src/console/console.c -.if defined(WITH_CLIENT_ONLY) -# In client port only install startup script out of script dir (see below post-install) -# Dont mkdir ${PREFIX}/share/bacula cause it's empty - @${REINPLACE_CMD} -e 's|^\(fd_subdirs = .*\)scripts\(.*\)|\1\2|g' ${WRKSRC}/Makefile.in - ${REINPLACE_CMD} -e 's|\(.*$${MKDIR} $${DESTDIR}$${scriptdir}\)|#\1|g' ${WRKSRC}/Makefile.in -.else -# In server port don't install filed - @${REINPLACE_CMD} -e '/^fd_subdirs = /s|src/filed||' -e 's|src/console||' ${WRKSRC}/Makefile.in -.endif - -.if !target(pre-install) -pre-install: - if [ ! -d "${BACULA_DIR}" ]; then \ - ${ECHO_CMD} "creating ${BACULA_DIR}" ; \ - ${MKDIR} ${BACULA_DIR}; \ - else \ - ${ECHO_CMD} "${BACULA_DIR} already exists"; \ - fi - -# Extend /etc/services and install UID/GID - @ ${SETENV} PKG_PREFIX=${PREFIX} \ - ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL -.endif - - -.if !target(post-install) -post-install: -.if defined(WITH_CLIENT_ONLY) -# Extend only /etc/services - @ ${SETENV} PKG_PREFIX=${PREFIX} \ - ${SH} ${PKGINSTALL} ${PORTNAME} -# Console stuff - if [ -f ${PREFIX}/etc/bconsole.conf.new ]; then \ - ${ECHO_CMD} "etc/bconsole.conf.new" >> ${TMPPLIST}; \ - ${CHGRP} bacula ${PREFIX}/etc/bconsole.conf.new; \ - elif [ -f ${PREFIX}/etc/bconsole.conf ]; then \ - ${MV} ${PREFIX}/etc/bconsole.conf ${PREFIX}/etc/bconsole.conf.sample; \ - ${CHGRP} bacula ${PREFIX}/etc/bconsole.conf.sample; \ - ${ECHO_CMD} "etc/bconsole.conf.sample" >> ${TMPPLIST}; \ - fi -.if defined(WITH_WXCONSOLE) - if [ -f ${PREFIX}/etc/bwx-console.conf.new ]; then \ - ${ECHO_CMD} "etc/bwx-console.conf.new" >> ${TMPPLIST}; \ - elif [ -f ${PREFIX}/etc/bwx-console.conf ]; then \ - ${MV} ${PREFIX}/etc/bwx-console.conf ${PREFIX}/etc/bwx-console.conf.sample; \ - ${ECHO_CMD} "etc/bwx-console.conf.sample" >> ${TMPPLIST}; \ - fi -.endif -.if defined(WITH_GNOMECONSOLE) - if [ -f ${PREFIX}/etc/bgnome-console.conf.new ]; then \ - ${ECHO_CMD} "etc/bgnome-console.conf.new" >> ${TMPPLIST}; \ - elif [ -f ${PREFIX}/etc/bgnome-console.conf ]; then \ - ${MV} ${PREFIX}/etc/bgnome-console.conf ${PREFIX}/etc/bgnome-console.conf.sample; \ - ${ECHO_CMD} "etc/bgnome-console.conf.sample" >> ${TMPPLIST}; \ - fi -.endif - -# ensure that users in the bacula group can run bconsole - ${CHGRP} bacula ${PREFIX}/sbin/bconsole -.else -# Install config files and preserve existing ones - ${INSTALL_SCRIPT} ${FILESDIR}/chio-bacula ${PREFIX}/sbin - if [ -f ${PREFIX}/etc/bacula-barcodes ]; then \ - ${INSTALL_DATA} ${FILESDIR}/bacula-barcodes ${PREFIX}/etc/bacula-barcodes.new ; \ - ${ECHO_CMD} "etc/bacula-barcodes.new" >> ${TMPPLIST}; \ - else \ - ${INSTALL_DATA} ${FILESDIR}/bacula-barcodes ${PREFIX}/etc/bacula-barcodes.samples ; \ - ${ECHO_CMD} "etc/bacula-barcodes.samples" >> ${TMPPLIST}; \ - fi -# chmod of bsmtp program so bacula can use it with dropped down permissions - ${CHMOD} o+x ${PREFIX}/sbin/bsmtp - ${CHOWN} -R bacula:bacula ${PREFIX}/share/bacula - -.endif -# Install leaves existing conf files untouched. Respect this here! - for na in ${CONFFILES}; do \ - if [ -f ${PREFIX}/etc/bacula-$$na.conf.new ]; then \ - ${ECHO_CMD} "etc/bacula-$$na.conf.new" >> ${TMPPLIST}; \ - elif [ -f ${PREFIX}/etc/bacula-$$na.conf ]; then \ - ${MV} ${PREFIX}/etc/bacula-$$na.conf ${PREFIX}/etc/bacula-$$na.conf.sample; \ - ${ECHO_CMD} "etc/bacula-$$na.conf.sample" >> ${TMPPLIST}; \ - fi; \ - done - - @${CAT} ${PKGMESSAGE} -.endif - -.include <bsd.port.post.mk> diff --git a/sysutils/bacula-server-devel/distinfo b/sysutils/bacula-server-devel/distinfo deleted file mode 100644 index 6d0809d192fe..000000000000 --- a/sysutils/bacula-server-devel/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (bacula-2.5.42-b2.tar.gz) = b7c7b39295568ca27cd57b71008d8379 -SHA256 (bacula-2.5.42-b2.tar.gz) = 3239f2cbc1bf705567b93b40a69759254c5e615542de25acce00589239d604ff -SIZE (bacula-2.5.42-b2.tar.gz) = 3789491 diff --git a/sysutils/bacula-server-devel/files/bacula-barcodes b/sysutils/bacula-server-devel/files/bacula-barcodes deleted file mode 100644 index 0a0b2dc28f24..000000000000 --- a/sysutils/bacula-server-devel/files/bacula-barcodes +++ /dev/null @@ -1,51 +0,0 @@ -# -# Bacula barcode simulation file -# used by ${PREFIX}/sbin/chio-bacula (FreeBSD) -# -# The volumenames are returned by the "changer list" command -# labeling in the console is done by "label barcodes" -# (then all volumes belog to the default pool). -# All Lines with an "#" at the bedinning are ignored -# -# !!!! If you export an tape and reinsert another one, -# !!!! don't forget to change the volume name in this file! -# -1:Volume1-100 -2:Volume1-101 -3:Volume1-102 -4:Volume1-103 -5:Volume1-104 -6:Volume1-105 -7:Volume1-106 -8:Volume1-107 -9:Volume1-108 -10:Volume1-109 -11:Volume1-110 -12:Volume1-111 -# -# Further volumes exported from the changer -# -# 36GB AIT2 tapes -#Volume1-100 -#Volume1-101 -#Volume1-102 -#Volume1-103 -#Volume1-104 -#Volume1-105 -#Volume1-106 -#Volume1-107 -#Volume1-108 -#Volume1-109 -#Volume1-110 -#Volume1-111 -#Volume1-112 -#Volume1-113 -#Volume1-114 -#Volume1-115 -# -# 50GB AIT2 tapes -#Volume2-200 -#Volume2-201 -#Volume2-202 -#Volume2-203 -#Volume2-204 diff --git a/sysutils/bacula-server-devel/files/bacula-dir.in b/sysutils/bacula-server-devel/files/bacula-dir.in deleted file mode 100644 index 1aa9dde9d8f5..000000000000 --- a/sysutils/bacula-server-devel/files/bacula-dir.in +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# PROVIDE: bacula_dir -# REQUIRE: DAEMON %%REQ_MYSQL%% %%REQ_PGSQL%% -# KEYWORD: shutdown -# -# Add the following lines to /etc/rc.conf.local or /etc/rc.conf -# to enable this service: -# -# bacula_dir_enable (bool): Set to NO by default. -# Set it to YES to enable bacula_dir. -# bacula_dir_flags (params): Set params used to start bacula_dir. -# - -. /etc/rc.subr - -name="bacula_dir" -rcvar=${name}_enable -command=%%PREFIX%%/sbin/bacula-dir - -load_rc_config $name - -: ${bacula_dir_enable="NO"} -: ${bacula_dir_flags=" -u bacula -g bacula -v -c %%PREFIX%%/etc/bacula-dir.conf"} -: ${bacula_dir_pidfile="/var/run/bacula-dir.9101.pid"} -pidfile="${bacula_dir_pidfile}" - -run_rc_command "$1" diff --git a/sysutils/bacula-server-devel/files/bacula-fd.in b/sysutils/bacula-server-devel/files/bacula-fd.in deleted file mode 100644 index 80775b3abd9e..000000000000 --- a/sysutils/bacula-server-devel/files/bacula-fd.in +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# PROVIDE: bacula_fd -# REQUIRE: DAEMON -# KEYWORD: shutdown -# -# Add the following lines to /etc/rc.conf.local or /etc/rc.conf -# to enable this service: -# -# bacula_fd_enable (bool): Set to NO by default. -# Set it to YES to enable bacula_fd. -# bacula_fd_flags (params): Set params used to start bacula_fd. -# - -. /etc/rc.subr - -name="bacula_fd" -rcvar=${name}_enable -command=%%PREFIX%%/sbin/bacula-fd - -load_rc_config $name - -: ${bacula_fd_enable="NO"} -: ${bacula_fd_flags=" -u root -g wheel -v -c %%PREFIX%%/etc/bacula-fd.conf"} -: ${bacula_fd_pidfile="/var/run/bacula-fd.9102.pid"} -pidfile="${bacula_fd_pidfile}" - -run_rc_command "$1" diff --git a/sysutils/bacula-server-devel/files/bacula-sd.conf.in b/sysutils/bacula-server-devel/files/bacula-sd.conf.in deleted file mode 100644 index 9c3bbafc1347..000000000000 --- a/sysutils/bacula-server-devel/files/bacula-sd.conf.in +++ /dev/null @@ -1,20 +0,0 @@ ---- src/stored/bacula-sd.conf.in.org Tue Feb 13 18:56:09 2007 -+++ src/stored/bacula-sd.conf.in Tue Feb 13 18:56:16 2007 -@@ -152,6 +152,7 @@ - #Device { - # Name = "DVD-Writer" - # Media Type = DVD -+# Device Type = DVD - # Archive Device = /dev/hdc - # LabelMedia = yes; # lets Bacula label unlabeled media - # Random Access = Yes; -@@ -162,7 +163,9 @@ - # RequiresMount = yes; - # MountPoint = /mnt/cdrom; - # MountCommand = "/bin/mount -t iso9660 -o ro %a %m"; -+# MountCommand = "/sbin/mount -t cd9660 -o ro %a %m"; # FreeBSD - # UnmountCommand = "/bin/umount %m"; -+# UnmountCommand = "/sbin/umount %m"; # FreeBSD - # SpoolDirectory = /tmp/backup; - # WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v" - # FreeSpaceCommand = "/etc/bacula/dvd-handler %a free" diff --git a/sysutils/bacula-server-devel/files/bacula-sd.in b/sysutils/bacula-server-devel/files/bacula-sd.in deleted file mode 100644 index e8ee13807ca2..000000000000 --- a/sysutils/bacula-server-devel/files/bacula-sd.in +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# PROVIDE: bacula_sd -# REQUIRE: DAEMON -# KEYWORD: shutdown -# -# Add the following lines to /etc/rc.conf.local or /etc/rc.conf -# to enable this service: -# -# bacula_sd_enable (bool): Set to NO by default. -# Set it to YES to enable bacula_sd. -# bacula_sd_flags (params): Set params used to start bacula_sd. -# - -. /etc/rc.subr - -name="bacula_sd" -rcvar=`set_rcvar` -command=%%PREFIX%%/sbin/bacula-sd - -load_rc_config $name - -: ${bacula_sd_enable="NO"} -: ${bacula_sd_flags=" -u bacula -g bacula -v -c %%PREFIX%%/etc/bacula-sd.conf"} -: ${bacula_sd_pidfile="/var/run/bacula-sd.9103.pid"} -pidfile="${bacula_sd_pidfile}" - -run_rc_command "$1" diff --git a/sysutils/bacula-server-devel/files/chio-bacula b/sysutils/bacula-server-devel/files/chio-bacula deleted file mode 100644 index ca7ec4931581..000000000000 --- a/sysutils/bacula-server-devel/files/chio-bacula +++ /dev/null @@ -1,200 +0,0 @@ -#!/bin/sh -# -# Bacula interface to FreeBSD chio autoloader command with -# multiple drive support -# (By Lars Köller, lars+bacula@koellers.net, 2004) -# -# If you set in your Device resource -# -# Changer Command = "path-to-this-script/chio-bacula" %c %o %S %a -# you will have the following input to this script: -# -# chio-bacula "changer-device" "command" "slot" "archive-device" "drive-index" -# $1 $2 $3 $4 $5 -# for example: -# -# chio-bacula /dev/sg0 load 1 /dev/nst0 0 (on a FreeBSD system) -# -# If you need to to an offline, refer to the drive as $4 -# e.g. mt -f $f offline -# -# Many changers need an offline after the unload. Also many -# changers need a sleep 60 after the mtx load. -# -# N.B. If you change the script, take care to return either -# the mtx exit code or a 0. If the script exits with a non-zero -# exit code, Bacula will assume the request failed. -# -me=$(basename $0) - -# Debug output, take care this file is writeable for user bacula! -#LOG=/var/db/bacula/chio-bacula.log -#exec 2>>$LOG -#echo "------------------------- $(date) Start $(basename $0) -------------------------" >> $LOG -#set -x - -# Debug -logger -p user.err "$me $@" - -# This simulates a barcode reader in the changer. -# The labes of the virtual barcode reader are located in the BARCODE_FILE -SIMULATE_BARCODE=true -BARCODE_FILE=/usr/local/etc/bacula-barcodes -MTX=/bin/chio -# Set default values (see case statement below for -# free mapping of drive index and tape device -# We have a double drive Qualstar where drive 1 is the default bacula drive -#TAPE=/dev/bacula-tape -TAPE=/dev/nrsa0 -DRIVE=0 -# Time to wait for (un)loading -SLEEP=20 - -usage() -{ - echo "" - echo "The $me script for bacula" - echo "--------------------------------------" - echo "" - echo "usage: $me <changer-device> <command> [slot] [devicename of tapedrive] [drive index]" - echo "" - echo "Valid commands:" - echo "" - echo "unload Unloads a tape into the slot" - echo " from where it was loaded." - echo "load <slot> Loads a tape from the slot <slot>" - echo " (slot-base is calculated to 1 as first slot)" - echo "list Lists full storage slots" - echo "loaded Gives slot from where the tape was loaded." - echo " 0 means the tape drive is empty." - echo "slots Gives Number of aviable slots." - echo "" - echo "Example:" - echo " $me /dev/changer load 1 loads a tape from slot 1" - echo "" - exit 2 -} - -# The changer device -if [ -z "$1" ] ; then - usage; -else - CHANGER=$1 -fi -# The command -if [ -z "$2" ] ; then - usage; -else - COMMAND=$2 -fi -# The slot number -if [ ! -z "$3" ]; then - SLOT=$3 - # btape fill says "... slot 1 drive 0" :-( - if [ "$SLOT" = "slot" ]; then - shift - SLOT=$3 - fi -fi -# Set tape device -if [ ! -z "$4" ]; then - TAPE=$4 -fi - -# Here you can map bacula drive number to any tape device -# DRIVE is the chio drive number used below by chio! -case $5 in - 0) - # First Drive in Changer is Bacula drive - DRIVE=0 - #TAPE=/dev/bacula-tape - TAPE=/dev/nrsa0 - ;; - 1) - DRIVE=1 - #TAPE=/dev/bacula-tape2 - TAPE=/dev/nrsa1 - ;; -esac - -# -# Main -# -case ${COMMAND} in - unload) - # enable the following line if you need to eject the cartridge - mt -f ${TAPE} off - sleep 2 - # if we have a slot, try it - if [ ! -z "$SLOT" ]; then - ${MTX} -f ${CHANGER} move drive ${DRIVE} slot $((${SLOT}-1)) - exit $? - fi - # Try other way (works if source element information is valid for drive) - ${MTX} -f ${CHANGER} return drive ${DRIVE} - # If the changer is power cycled with a tape loaded in a drive - # we can compute the slot in case of a complete filled magazine, with - # one slot free. - if [ "$?" != "0" ]; then - free_slot=`${MTX} -f ${CHANGER} stat | grep "^slot " | grep -v "FULL" | awk '{print $2}'` - free_slot=${free_slot%:} - ${MTX} -f ${CHANGER} move drive ${DRIVE} slot $free_slot - fi - ;; - - load) - ${MTX} -f ${CHANGER} move slot $((${SLOT}-1)) drive ${DRIVE} - rtn=$? - # Increase the sleep time if you have a slow device - sleep $SLEEP - exit $rtn - ;; - - list) - if [ "${SIMULATE_BARCODE}" = "true" ]; then - if [ -f "$BARCODE_FILE" ]; then - cat $BARCODE_FILE | grep -v -e "^#" -e "^$" - exit 0 - else - echo "Barcode file $BARCODE_FILE missing ... exiting!" - exit 1 - fi - else - ${MTX} -f ${CHANGER} status | grep "^slot .*: .*FULL>" | awk '{print $2}' | awk -F: '{print $1+1" "}' | tr -d "[\r\n]" - fi - ;; - - loaded) - # echo "Request loaded" - ${MTX} -f ${CHANGER} status -S > /tmp/mtx.$$ - rtn=$? - # Try to get chio slot source from drive entry - SLOT=$(cat /tmp/mtx.$$ | grep "^drive ${DRIVE}: <FULL> .*slot" | awk '{print $6+1}' | tr -d ">") - if [ -z "$SLOT" ]; then - # This handles the case a source slot is not available (power on - # of the changer with a drive loaded) and all other slots are - # occupied with a tape! - SLOT=$(cat /tmp/mtx.$$ | grep "^slot .*: <ACCESS>" | awk '{print $2+1}') - if [ -z "$SLOT" ]; then - echo 0 - else - echo $SLOT - fi - else - echo $SLOT - fi - # All tapes are in the slots - #cat /tmp/mtx.$$ | grep "^drive ${DRIVE}: .* source: <>" | awk "{print 0}" - rm -f /tmp/mtx.$$ - exit $rtn - ;; - - slots) - # echo "Request slots" - ${MTX} -f ${CHANGER} status | grep "^slot " | tail -1 | awk '{print $2+1}' | tr -d ":" - ;; - - *) - usage - ;; -esac diff --git a/sysutils/bacula-server-devel/files/patch-scripts-Makefile.in b/sysutils/bacula-server-devel/files/patch-scripts-Makefile.in deleted file mode 100644 index d05246bbbcd7..000000000000 --- a/sysutils/bacula-server-devel/files/patch-scripts-Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- scripts/Makefile.in.orig Tue Sep 12 12:03:08 2006 -+++ scripts/Makefile.in Tue Sep 12 12:03:08 2006 -@@ -33,8 +33,6 @@ - $(MKDIR) $(DESTDIR)$(mandir) - - install: installdirs -- $(INSTALL_SCRIPT) startmysql $(DESTDIR)$(scriptdir)/startmysql -- $(INSTALL_SCRIPT) stopmysql $(DESTDIR)$(scriptdir)/stopmysql - $(INSTALL_SCRIPT) bconsole $(DESTDIR)$(scriptdir)/bconsole - $(INSTALL_SCRIPT) gconsole $(DESTDIR)$(scriptdir)/gconsole - $(INSTALL_SCRIPT) bacula $(DESTDIR)$(scriptdir)/bacula diff --git a/sysutils/bacula-server-devel/files/patch-src-console-Makefile.in b/sysutils/bacula-server-devel/files/patch-src-console-Makefile.in deleted file mode 100644 index e31efc2e2a9d..000000000000 --- a/sysutils/bacula-server-devel/files/patch-src-console-Makefile.in +++ /dev/null @@ -1,19 +0,0 @@ -*** src/console/Makefile.in.org Sat Apr 3 20:40:26 2004 ---- src/console/Makefile.in Sat May 8 14:01:49 2004 -*************** -*** 89,95 **** - destconf=$$srcconf; \ - if test -f ${DESTDIR}${sysconfdir}/console.conf; then \ - echo "Existing console.conf moved to bconsole.conf"; \ -! @$(MV) ${DESTDIR}${sysconfdir}/console.conf ${DESTDIR}${sysconfdir}/bconsole.conf; \ - destconf=$$srcconf.new; \ - fi; \ - fi; \ ---- 89,95 ---- - destconf=$$srcconf; \ - if test -f ${DESTDIR}${sysconfdir}/console.conf; then \ - echo "Existing console.conf moved to bconsole.conf"; \ -! $(MV) ${DESTDIR}${sysconfdir}/console.conf ${DESTDIR}${sysconfdir}/bconsole.conf; \ - destconf=$$srcconf.new; \ - fi; \ - fi; \ diff --git a/sysutils/bacula-server-devel/files/patch-src_cats_sql.c b/sysutils/bacula-server-devel/files/patch-src_cats_sql.c deleted file mode 100644 index c8056b405fcc..000000000000 --- a/sysutils/bacula-server-devel/files/patch-src_cats_sql.c +++ /dev/null @@ -1,11 +0,0 @@ ---- src/cats/sql.c.orig 2008-11-11 09:33:46.000000000 -0500 -+++ src/cats/sql.c 2009-04-11 20:35:41.171024520 -0400 -@@ -759,7 +759,7 @@ - if (mdb->lock.valid == RWLOCK_VALID) { - fprintf(fp, "\tRWLOCK=%p w_active=%i w_wait=%i\n", &mdb->lock, mdb->lock.w_active, mdb->lock.w_wait); - #ifndef HAVE_WIN32 -- fprintf(fp, "\t\tthreadid=0x%x mutex=%p\n", (int)mdb->lock.writer_id, &mdb->lock.mutex); -+ fprintf(fp, "\t\tthreadid=0x%lx mutex=%p\n", (long)mdb->lock.writer_id, &mdb->lock.mutex); - #endif - } - } diff --git a/sysutils/bacula-server-devel/files/patch-src_lib_jcr.c b/sysutils/bacula-server-devel/files/patch-src_lib_jcr.c deleted file mode 100644 index 6b6d005840fa..000000000000 --- a/sysutils/bacula-server-devel/files/patch-src_lib_jcr.c +++ /dev/null @@ -1,13 +0,0 @@ ---- src/lib/jcr.c.orig 2009-03-06 15:00:47.000000000 -0500 -+++ src/lib/jcr.c 2009-04-11 20:34:50.407999331 -0400 -@@ -1063,8 +1063,8 @@ - fprintf(fp, "\tuse_count=%i\n", - jcr->use_count()); - #else -- fprintf(fp, "\tuse_count=%i threadid=0x%x\n", -- jcr->use_count(), (int)jcr->my_thread_id); -+ fprintf(fp, "\tuse_count=%i threadid=0x%lx\n", -+ jcr->use_count(), (long)jcr->my_thread_id); - #endif - fprintf(fp, "\tJobType=%c JobLevel=%c\n", - jcr->get_JobType(), jcr->get_JobLevel()); diff --git a/sysutils/bacula-server-devel/files/pkg-message.client.in b/sysutils/bacula-server-devel/files/pkg-message.client.in deleted file mode 100644 index bb9c496d6b13..000000000000 --- a/sysutils/bacula-server-devel/files/pkg-message.client.in +++ /dev/null @@ -1,23 +0,0 @@ -################################################################################ - -NOTE: -Sample files are installed in ${PREFIX}/etc: -bconsole.conf.sample, bacula-barcodes.sample, bacula-fd.conf.sample - - Please read this file: - - %%DOCSDIR%%/ReleaseNotes - - as installed by docs port for the upgrade procedure. - -IMPORTANT UPGRADE NOTES: - -- A database upgrade is required. -- Your Director and SD must be simultaneously upgraded. -- The "Accept Any Volume" directive has been removed. - -- Lots of new features - -Read the ReleaseNotes for further information. - -################################################################################ diff --git a/sysutils/bacula-server-devel/files/pkg-message.server.in b/sysutils/bacula-server-devel/files/pkg-message.server.in deleted file mode 100644 index cf7423856926..000000000000 --- a/sysutils/bacula-server-devel/files/pkg-message.server.in +++ /dev/null @@ -1,66 +0,0 @@ -################################################################################ -NOTE: - -An auto-changer manipulation script based on FreeBSDs -chio command is included and installed at - - ${PREFIX}/sbin/chio-bacula - -Please have a look at it if you want to use an -autochanger. You have to configure the usage in - - ${PREFIX}/etc/bacula-dir.conf - -Take care of correct permissions for changer and -tape device (e.g. /dev/ch0 and /dev/n[r]sa0) i.e. -they must be accessible by user bacula. - -Due to lack of some features in the FreeBSD tape driver -implementation you MUST add some OS dependent options to -the bacula-sd.conf file: - - Hardware End of Medium = no; - Backward Space Record = no; - Backward Space File = no; - -With 2 filemarks at EOT (see man mt): - Fast Forward Space File = no; - BSF at EOM = yes; - TWO EOF = yes; - -With 1 filemarks at EOT (see man mt): - Fast Forward Space File = yes; - BSF at EOM = no; - TWO EOF = no; - -NOTE: YOU CAN SWITCH EOT model ONLY when starting - from scratch with EMPTY tapes. - -It is also important that all the scripts accessed -by RunBeforeJob and RunAfterJob will be executed by -the user bacula. Check your permissions. - -For USB support read the bacula manual. It could be necessary -to configure/compile a new kernel. - -Look at ${PREFIX}/share/bacula/update_bacula_tables for -database update procedure. Details can be found in the -ReleaseNotes - - Please read this file: - - %%DOCSDIR%%/ReleaseNotes - - as installed by docs port for the upgrade procedure. - -IMPORTANT UPGRADE NOTES FOR THIS RELEASE: - -- A database upgrade is required. -- Your Director and SD must be simultaneously upgraded. -- The "Accept Any Volume" directive has been removed. - -- Lots of new features - -Read the ReleaseNotes for further information. - -################################################################################ diff --git a/sysutils/bacula-server-devel/pkg-deinstall b/sysutils/bacula-server-devel/pkg-deinstall deleted file mode 100644 index 3af061509188..000000000000 --- a/sysutils/bacula-server-devel/pkg-deinstall +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -PATH=/bin:/usr/bin:/usr/sbin -TMPFILE=/tmp/services-$RANDOM-$$ -if [ -z "${BACULA_DIR}" ]; then - BACULA_DIR=/var/db/bacula -fi - -case "$2" in -"DEINSTALL") - # Delete entries in /etc/services - sed -e '/# Bacula port start/,/# Bacule port end/{' \ - -e 'd' \ - -e '}' /etc/services > $TMPFILE - mv -f $TMPFILE /etc/services - - if [ -d ${BACULA_DIR} ]; then - rmdir ${BACULA_DIR}; - fi - if [ -d ${BACULA_DIR} ]; then - echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the bacula port" - fi - - # Note how to delete UID/GID - USER=bacula - GROUP=${USER} - if pw usershow "${USER}" 2>/dev/null 1>&2; then - echo "To delete Bacula user permanently, use 'pw userdel ${USER}'" - echo "To delete Bacula group permanently, use 'pw groupdel ${GROUP}'" - fi - ;; -esac diff --git a/sysutils/bacula-server-devel/pkg-deinstall.client b/sysutils/bacula-server-devel/pkg-deinstall.client deleted file mode 100644 index 206ec9efca6b..000000000000 --- a/sysutils/bacula-server-devel/pkg-deinstall.client +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -PATH=/bin:/usr/bin:/usr/sbin -TMPFILE=/tmp/services-$RANDOM-$$ -if [ -z "${BACULA_DIR}" ]; then - BACULA_DIR=/var/db/bacula -fi - -case "$2" in -"DEINSTALL") - # Delete entries in /etc/services - sed -e '/# Bacula port start/,/# Bacule port end/{' \ - -e 'd' \ - -e '}' /etc/services > $TMPFILE - mv -f $TMPFILE /etc/services - - if [ -d ${BACULA_DIR} ]; then - rmdir ${BACULA_DIR}; - fi - if [ -d ${BACULA_DIR} ]; then - echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the bacula port" - fi - - # Note how to delete UID/GID - USER=bacula - GROUP=${USER} - if pw groupshow "${USER}" 2>/dev/null 1>&2; then - echo "To delete Bacula group permanently, use 'pw groupdel ${GROUP}'" - fi - ;; -esac diff --git a/sysutils/bacula-server-devel/pkg-descr b/sysutils/bacula-server-devel/pkg-descr deleted file mode 100644 index 5a47fd1b3e43..000000000000 --- a/sysutils/bacula-server-devel/pkg-descr +++ /dev/null @@ -1,13 +0,0 @@ -Bacula is a set of computer programs that permit you (or the system -administrator) to manage backup, recovery, and verification of -computer data across a network of computers of different kinds. -In technical terms, it is a network Client/Server based backup program. -Bacula is relatively easy to use and efficient, while offering many -advanced storage management features that make it easy to find and -recover lost or damaged files. Due to its modular design, Bacula is -scalable from small single computer systems to systems consisting of -hundreds of computers located over a large network. - -This port is built from the development branch of Bacula. - -WWW: http://www.bacula.org/ diff --git a/sysutils/bacula-server-devel/pkg-install b/sysutils/bacula-server-devel/pkg-install deleted file mode 100644 index 1dc3d8613ada..000000000000 --- a/sysutils/bacula-server-devel/pkg-install +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - -PATH=/bin:/usr/bin:/usr/sbin -if [ -z "${BACULA_DIR}" ]; then - BACULA_DIR=/var/db/bacula -fi - -# Always add lines in /etc/services -grep -q "bacula-dir" /etc/services -if [ "$?" != "0" ]; then - echo "# Bacula port start -bacula-dir 9101/tcp #Bacula director daemon -bacula-fd 9102/tcp #Bacula file daemon -bacula-sd 9103/tcp #Bacula storage daemon -# Bacule port end" >> /etc/services -fi - -case $2 in -PRE-INSTALL) - # Install UID/GID - USER=bacula - GROUP=${USER} - UID=910 - GID=${UID} - - if [ ! -d ${BACULA_DIR} ]; then - mkdir -p ${BACULA_DIR} - fi - - if pw group show "${GROUP}" 2>/dev/null; then - echo "You already have a group \"${GROUP}\", so I will use it." - else - if pw groupadd ${GROUP} -g ${GID}; then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - exit 1 - fi - fi - - if pw user show "${USER}" 2>/dev/null; then - echo "You already have a user \"${USER}\", so I will use it." - if pw usermod ${USER} -d ${BACULA_DIR} -G operator - then - echo "Changed home directory of \"${USER}\" to \"${BACULA_DIR}\"" - else - echo "Changing home directory of \"${USER}\" to \"${BACULA_DIR}\" failed..." - exit 1 - fi - else - if pw useradd ${USER} -u ${UID} -g ${GROUP} -G operator -h - \ - -d ${BACULA_DIR} -s /sbin/nologin -c "Bacula Daemon" - then - echo "Added user \"${USER}\"." - else - echo "Adding user \"${USER}\" failed..." - exit 1 - fi - fi - chown -R ${USER}:${GROUP} ${BACULA_DIR} - ;; -esac diff --git a/sysutils/bacula-server-devel/pkg-install.client b/sysutils/bacula-server-devel/pkg-install.client deleted file mode 100644 index 656acca83733..000000000000 --- a/sysutils/bacula-server-devel/pkg-install.client +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -PATH=/bin:/usr/bin:/usr/sbin -if [ -z "${BACULA_DIR}" ]; then - BACULA_DIR=/var/db/bacula -fi - -# Always add lines in /etc/services -grep -q "bacula-dir" /etc/services -if [ "$?" != "0" ]; then - echo "# Bacula port start -bacula-dir 9101/tcp #Bacula director daemon -bacula-fd 9102/tcp #Bacula file daemon -bacula-sd 9103/tcp #Bacula storage daemon -# Bacule port end" >> /etc/services -fi - -case $2 in -PRE-INSTALL) - # Install UID/GID - USER=bacula - GROUP=${USER} - UID=910 - GID=${UID} - - if [ ! -d ${BACULA_DIR} ]; then - mkdir -p ${BACULA_DIR} - fi - - if pw group show "${GROUP}" 2>/dev/null; then - echo "You already have a group \"${GROUP}\", so I will use it." - else - if pw groupadd ${GROUP} -g ${GID}; then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - exit 1 - fi - fi - - chgrp -R ${GROUP} ${BACULA_DIR} - ;; -esac diff --git a/sysutils/bacula-server-devel/pkg-plist b/sysutils/bacula-server-devel/pkg-plist deleted file mode 100644 index 4eefb0bc59a0..000000000000 --- a/sysutils/bacula-server-devel/pkg-plist +++ /dev/null @@ -1,64 +0,0 @@ -lib/bpipe-fd.so -lib/libbac.la -lib/libbac.so -lib/libbac.so.1 -lib/libbaccfg.la -lib/libbaccfg.so -lib/libbaccfg.so.1 -lib/libbacfind.la -lib/libbacfind.so -lib/libbacfind.so.1 -lib/libbacpy.la -lib/libbacpy.so -lib/libbacpy.so.1 -lib/libbacsql.la -lib/libbacsql.so -lib/libbacsql.so.1 -sbin/bacula -sbin/bacula-dir -sbin/bacula-sd -sbin/bcopy -sbin/bextract -sbin/bls -sbin/bregex -sbin/bscan -sbin/bsmtp -sbin/btape -sbin/btraceback -sbin/bwild -sbin/chio-bacula -sbin/dbcheck -%%DATADIR%%/bacula -%%DATADIR%%/bacula-ctl-dir -%%DATADIR%%/bacula-ctl-fd -%%DATADIR%%/bacula-ctl-sd -%%DATADIR%%/bconsole -%%DATADIR%%/btraceback.gdb -%%DATADIR%%/btraceback.dbx -%%DATADIR%%/create_bacula_database -%%DATADIR%%/create_%%DBTYPE%%_database -%%DATADIR%%/delete_catalog_backup -%%DATADIR%%/disk-changer -%%DATADIR%%/drop_bacula_database -%%DATADIR%%/drop_bacula_tables -%%DATADIR%%/drop_%%DBTYPE%%_database -%%DATADIR%%/drop_%%DBTYPE%%_tables -%%DATADIR%%/dvd-handler -%%DATADIR%%/gconsole -%%DATADIR%%/grant_bacula_privileges -%%DATADIR%%/grant_%%DBTYPE%%_privileges -%%DATADIR%%/make_bacula_tables -%%DATADIR%%/make_catalog_backup -%%DATADIR%%/make_%%DBTYPE%%_tables -%%DATADIR%%/mtx-changer -%%DATADIR%%/mtx-changer.conf -%%DATADIR%%/query.sql -%%DATADIR%%/update_bacula_tables -%%DATADIR%%/update_%%DBTYPE%%_tables - - -@dirrm %%DATADIR%% -@unexec /usr/bin/killall bacula-sd > /dev/null 2>&1 || true -@unexec /usr/bin/killall bacula-dir > /dev/null 2>&1 || true -@exec mkdir -p %%BACULA_DIR%% -@dirrmtry %%BACULA_DIR%% diff --git a/sysutils/bacula-server-devel/pkg-plist.client b/sysutils/bacula-server-devel/pkg-plist.client deleted file mode 100644 index 6dc5732948e6..000000000000 --- a/sysutils/bacula-server-devel/pkg-plist.client +++ /dev/null @@ -1,21 +0,0 @@ -lib/bpipe-fd.so -lib/libbac.la -lib/libbac.so -lib/libbac.so.1 -lib/libbaccfg.la -lib/libbaccfg.so -lib/libbaccfg.so.1 -lib/libbacfind.la -lib/libbacfind.so -lib/libbacfind.so.1 -lib/libbacpy.la -lib/libbacpy.so -lib/libbacpy.so.1 -sbin/bacula-fd -sbin/bconsole -%%GNOMECONS%%sbin/gnome-console -%%WXCONS%%sbin/wx-console -@dirrm %%DATADIR%% -@unexec /usr/bin/killall badula-fd > /dev/null 2>&1 || true -@exec mkdir -p %%BACULA_DIR%% -@dirrmtry %%BACULA_DIR%% |