diff --git a/cross/bitlbee/Makefile b/cross/bitlbee/Makefile deleted file mode 100644 index 1177373b2a0..00000000000 --- a/cross/bitlbee/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -PKG_NAME = bitlbee -PKG_VERS = 3.4.2 -PKG_EXT = tar.gz -PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) -PKG_DIST_SITE = http://get.bitlbee.org/src -PKG_DIR = $(PKG_NAME)-$(PKG_VERS) - -DEPENDS = cross/glib cross/gnutls cross/libgcrypt - -HOMEPAGE = http://www.bitlbee.org/ -COMMENT = BitlBee brings IM (instant messaging) to IRC clients. It\'s a great solution for people who have an IRC client running all the time and don\'t want to run an additional MSN/AIM/whatever client -LICENSE = GPLv2 - -CONFIGURE_TARGET = myConfigure -INSTALL_TARGET = myInstall - -GNU_CONFIGURE = 1 -CONFIGURE_ARGS = --ssl=gnutls --prefix=$(INSTALL_PREFIX) --pidfile=$(INSTALL_PREFIX)/var/bitlbee.pid -CONFIGURE_ARGS += --config=$(INSTALL_PREFIX)/var/ -ifeq ($(findstring $(ARCH),powerpc ppc824x),$(ARCH)) -CONFIGURE_ARGS += --pie=0 -endif - -include ../../mk/spksrc.cross-cc.mk - -.PHONY: myConfigure -myConfigure: - $(RUN) PATH=$(STAGING_INSTALL_PREFIX)/bin:$$PATH ./configure $(REAL_CONFIGURE_ARGS) - @echo "LDFLAGS_BITLBEE+=\$$(LDFLAGS)" >> $(WORK_DIR)/$(PKG_DIR)/Makefile.settings - -.PHONY: myInstall -myInstall: - $(RUN) $(MAKE) install DESTDIR=$(INSTALL_DIR) diff --git a/cross/bitlbee/PLIST b/cross/bitlbee/PLIST deleted file mode 100644 index 3f77665a8ec..00000000000 --- a/cross/bitlbee/PLIST +++ /dev/null @@ -1,2 +0,0 @@ -bin:sbin/bitlbee -rsc:share/bitlbee/help.txt diff --git a/cross/bitlbee/digests b/cross/bitlbee/digests deleted file mode 100644 index 7256b2fc2d5..00000000000 --- a/cross/bitlbee/digests +++ /dev/null @@ -1,3 +0,0 @@ -bitlbee-3.4.2.tar.gz SHA1 c93eab4161754235a2bc04ba3dc0fc66ce2d34f2 -bitlbee-3.4.2.tar.gz SHA256 69c85554def74f314e3b6e390389a30b0e748f23ef37883e9d7545ee2c45ea57 -bitlbee-3.4.2.tar.gz MD5 3b620bf80c35d673cd08311792ec96be diff --git a/spk/bitlbee/Makefile b/spk/bitlbee/Makefile deleted file mode 100644 index 4efd3e23b02..00000000000 --- a/spk/bitlbee/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -SPK_NAME = bitlbee -SPK_VERS = 3.4.2 -SPK_REV = 12 -SPK_ICON = src/bitlbee.png - -DEPENDS = cross/busybox cross/$(SPK_NAME) - -MAINTAINER = Diaoul -DESCRIPTION = BitlBee brings IM \(instant messaging\) to IRC clients. It\'s a great solution for people who have an IRC client running all the time and don\'t want to run an additional MSN/AIM/whatever client. -DESCRIPTION_FRE = BitlBee permet d\'accèder à sa messagerie instantanée depuis un client IRC. C\'est la solution idéale pour les personnes ayant un client IRC connecté en permanence et qui ne veulent pas de programmes supplémentaires comme MSN, AIM ou autre. -DISPLAY_NAME = BitlBee -CHANGELOG = Update to 3.4.2 - -HOMEPAGE = http://www.bitlbee.org/ -LICENSE = GPLv2 - -INSTALLER_SCRIPT = src/installer.sh -SSS_SCRIPT = src/dsm-control.sh -FWPORTS = src/${SPK_NAME}.sc -CONF_DIR = src/conf/ - - -INSTALL_PREFIX = /usr/local/$(SPK_NAME) - -POST_STRIP_TARGET = bitlbee_extra_install - -BUSYBOX_CONFIG = usrmng -ENV += BUSYBOX_CONFIG="$(BUSYBOX_CONFIG)" - -include ../../mk/spksrc.spk.mk - -.PHONY: bitlbee_extra_install -bitlbee_extra_install: - install -m 755 -d $(STAGING_DIR)/var - install -m 644 src/bitlbee.conf $(STAGING_DIR)/var/bitlbee.conf diff --git a/spk/bitlbee/PLIST b/spk/bitlbee/PLIST deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/spk/bitlbee/src/bitlbee.conf b/spk/bitlbee/src/bitlbee.conf deleted file mode 100644 index 4bfb476d6fd..00000000000 --- a/spk/bitlbee/src/bitlbee.conf +++ /dev/null @@ -1,156 +0,0 @@ -## BitlBee default configuration file -## -## Comments are marked like this. The rest of the file is INI-style. The -## comments should tell you enough about what all settings mean. -## - -[settings] - -## RunMode: -## -## Inetd -- Run from inetd (default) -## Daemon -- Run as a stand-alone daemon, serving all users from one process. -## This saves memory if there are more users, the downside is that when one -## user hits a crash-bug, all other users will also lose their connection. -## ForkDaemon -- Run as a stand-alone daemon, but keep all clients in separate -## child processes. This should be pretty safe and reliable to use instead -## of inetd mode. -## -RunMode = Daemon - -## User: -## -## If BitlBee is started by root as a daemon, it can drop root privileges, -## and change to the specified user. -## -# User = bitlbee - -## DaemonPort/DaemonInterface: -## -## For daemon mode, you can specify on what interface and port the daemon -## should be listening for connections. -## -# DaemonInterface = 0.0.0.0 -# DaemonPort = 6667 - -## ClientInterface: -## -## If for any reason, you want BitlBee to use a specific address/interface -## for outgoing traffic (IM connections, HTTP(S), etc.), set it here. -## -# ClientInterface = 0.0.0.0 - -## AuthMode -## -## Open -- Accept connections from anyone, use NickServ for user authentication. -## (default) -## Closed -- Require authorization (using the PASS command during login) before -## allowing the user to connect at all. -## Registered -- Only allow registered users to use this server; this disables -## the register- and the account command until the user identifies itself. -## -AuthMode = Closed - -## AuthPassword -## -## Password the user should enter when logging into a closed BitlBee server. -## You can also have a BitlBee-style MD5 hash here. Format: "md5:", followed -## by a hash as generated by "bitlbee -x hash ". -## -# AuthPassword = ItllBeBitlBee ## Heh.. Our slogan. ;-) -## or -# AuthPassword = md5:gzkK0Ox/1xh+1XTsQjXxBJ571Vgl -AuthPassword = md5:@auth_password@ - -## OperPassword -## -## Password that unlocks access to special operator commands. -## -# OperPassword = ChangeMe! -## or -# OperPassword = md5:I0mnZbn1t4R731zzRdDN2/pK7lRX -OperPassword = md5:@oper_password@ - -## HostName -## -## Normally, BitlBee gets a hostname using getsockname(). If you have a nicer -## alias for your BitlBee daemon, you can set it here and BitlBee will identify -## itself with that name instead. -## -# HostName = localhost - -## MotdFile -## -## Specify an alternative MOTD (Message Of The Day) file. Default value depends -## on the --etcdir argument to configure. -## -# MotdFile = /etc/bitlbee/motd.txt - -## ConfigDir -## -## Specify an alternative directory to store all the per-user configuration -## files. (.nicks/.accounts) -## -ConfigDir = /usr/local/bitlbee/var - -## Ping settings -## -## BitlBee can send PING requests to the client to check whether it's still -## alive. This is not very useful on local servers, but it does make sense -## when most clients connect to the server over a real network interface. -## (Public servers) Pinging the client will make sure lost clients are -## detected and cleaned up sooner. -## -## PING requests are sent every PingInterval seconds. If no PONG reply has -## been received for PingTimeOut seconds, BitlBee aborts the connection. -## -## To disable the pinging, set at least one of these to 0. -## -# PingInterval = 180 -# PingTimeOut = 300 - -## Using proxy servers for outgoing connections -## -## If you're running BitlBee on a host which is behind a restrictive firewall -## and a proxy server, you can tell BitlBee to use that proxy server here. -## The setting has to be a URL, formatted like one of these examples: -## -## (Obviously, the username and password are optional) -## -# Proxy = http://john:doe@proxy.localnet.com:8080 -# Proxy = socks4://socksproxy.localnet.com -# Proxy = socks5://socksproxy.localnet.com - -## Protocols offered by bitlbee -## -## As recompiling may be quite unpractical for some people, this option -## allows to remove the support of protocol, even if compiled in. If -## nothing is given, there are no restrictions. -## -# Protocols = jabber yahoo - -## Trusted CAs -## -## Path to a file containing a list of trusted certificate authorities used in -## the verification of server certificates. -## -## Uncomment this and make sure the file actually exists and contains all -## certificate authorities you're willing to accept (default value should -## work on at least Debian/Ubuntu systems with the "ca-certificates" package -## installed). As long as the line is commented out, SSL certificate -## verification is completely disabled. -## -## The location of this file may be different on other distros/OSes. For -## example, try /etc/ssl/ca-bundle.pem on OpenSUSE. -## -# CAfile = /etc/ssl/certs/ca-certificates.crt - -[defaults] - -## Here you can override the defaults for some per-user settings. Users are -## still able to override your defaults, so this is not a way to restrict -## your users... - -## To enable private mode by default, for example: - -## private = 1 diff --git a/spk/bitlbee/src/bitlbee.png b/spk/bitlbee/src/bitlbee.png deleted file mode 100644 index 941a51d797e..00000000000 Binary files a/spk/bitlbee/src/bitlbee.png and /dev/null differ diff --git a/spk/bitlbee/src/bitlbee.sc b/spk/bitlbee/src/bitlbee.sc deleted file mode 100644 index 4d42ddd1daf..00000000000 --- a/spk/bitlbee/src/bitlbee.sc +++ /dev/null @@ -1,6 +0,0 @@ -[bitlbee] -title="BitlBee" -desc="BitlBee" -port_forward="yes" -dst.ports="6667/tcp" - diff --git a/spk/bitlbee/src/conf/privilege b/spk/bitlbee/src/conf/privilege deleted file mode 100644 index aedc18cd50b..00000000000 --- a/spk/bitlbee/src/conf/privilege +++ /dev/null @@ -1,31 +0,0 @@ -{ - "defaults":{ - "run-as": "package" - }, - "username": "sc-bitlbee", - "ctrl-script": [{ - "action": "preinst", - "run-as": "root" - }, { - "action": "postinst", - "run-as": "root" - }, { - "action": "preuninst", - "run-as": "root" - }, { - "action": "postuninst", - "run-as": "root" - }, { - "action": "preupgrade", - "run-as": "root" - }, { - "action": "postupgrade", - "run-as": "root" - }, { - "action": "start", - "run-as": "root" - }, { - "action": "stop", - "run-as": "root" - }] -} \ No newline at end of file diff --git a/spk/bitlbee/src/dsm-control.sh b/spk/bitlbee/src/dsm-control.sh deleted file mode 100755 index 4db7d91e81e..00000000000 --- a/spk/bitlbee/src/dsm-control.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/sh - -# Package -PACKAGE="bitlbee" -DNAME="BitlBee" - -# Others -INSTALL_DIR="/usr/local/${PACKAGE}" -PATH="${INSTALL_DIR}/bin:${INSTALL_DIR}/sbin:/usr/local/bin:/bin:/usr/bin:/usr/syno/bin" -BUILDNUMBER="$(/bin/get_key_value /etc.defaults/VERSION buildnumber)" -BITLBEE="${INSTALL_DIR}/sbin/bitlbee" -CFG_FILE="${INSTALL_DIR}/var/bitlbee.conf" -PID_FILE="${INSTALL_DIR}/var/bitlbee.pid" - -SC_USER="sc-bitlbee" -LEGACY_USER="bitlbee" -USER="$([ "${BUILDNUMBER}" -ge "7321" ] && echo -n ${SC_USER} || echo -n ${LEGACY_USER})" - - -start_daemon () -{ - su ${USER} -s /bin/sh -c "LD_LIBRARY_PATH=${INSTALL_DIR}/lib ${BITLBEE} -c ${CFG_FILE}" -} - -stop_daemon () -{ - kill `cat ${PID_FILE}` - wait_for_status 1 20 || kill -9 `cat ${PID_FILE}` - rm -f ${PID_FILE} -} - -daemon_status () -{ - if [ -f ${PID_FILE} ] && kill -0 `cat ${PID_FILE}` > /dev/null 2>&1; then - return - fi - rm -f ${PID_FILE} - return 1 -} - -wait_for_status () -{ - counter=$2 - while [ ${counter} -gt 0 ]; do - daemon_status - [ $? -eq $1 ] && return - let counter=counter-1 - sleep 1 - done - return 1 -} - - -case $1 in - start) - if daemon_status; then - echo ${DNAME} is already running - exit 0 - else - echo Starting ${DNAME} ... - start_daemon - exit $? - fi - ;; - stop) - if daemon_status; then - echo Stopping ${DNAME} ... - stop_daemon - exit $? - else - echo ${DNAME} is not running - exit 0 - fi - ;; - restart) - stop_daemon - start_daemon - exit $? - ;; - status) - if daemon_status; then - echo ${DNAME} is running - exit 0 - else - echo ${DNAME} is not running - exit 1 - fi - ;; - *) - exit 1 - ;; -esac diff --git a/spk/bitlbee/src/installer.sh b/spk/bitlbee/src/installer.sh deleted file mode 100755 index ba080214c33..00000000000 --- a/spk/bitlbee/src/installer.sh +++ /dev/null @@ -1,109 +0,0 @@ -#!/bin/sh - -# Package -PACKAGE="bitlbee" -DNAME="BitlBee" - -# Others -INSTALL_DIR="/usr/local/${PACKAGE}" -SSS="/var/packages/${PACKAGE}/scripts/start-stop-status" -PATH="${INSTALL_DIR}/bin:${INSTALL_DIR}/sbin:${PATH}" -BITLBEE="${INSTALL_DIR}/sbin/bitlbee" -CFG_FILE="${INSTALL_DIR}/var/bitlbee.conf" -TMP_DIR="${SYNOPKG_PKGDEST}/../../@tmp" -SERVICETOOL="/usr/syno/bin/servicetool" -BUILDNUMBER="$(/bin/get_key_value /etc.defaults/VERSION buildnumber)" -FWPORTS="/var/packages/${PACKAGE}/scripts/${PACKAGE}.sc" - -DSM6_UPGRADE="${INSTALL_DIR}/var/.dsm6_upgrade" -SC_USER="sc-bitlbee" -LEGACY_USER="bitlbee" -LEGACY_GROUP="nobody" -USER="$([ "${BUILDNUMBER}" -ge "7321" ] && echo -n ${SC_USER} || echo -n ${LEGACY_USER})" - - -preinst () -{ - exit 0 -} - -postinst () -{ - # Link - ln -s ${SYNOPKG_PKGDEST} ${INSTALL_DIR} - - # Install busybox stuff - ${INSTALL_DIR}/bin/busybox --install ${INSTALL_DIR}/bin - - # Create legacy user - if [ "${BUILDNUMBER}" -lt "7321" ]; then - adduser -h ${INSTALL_DIR}/var -g "${DNAME} User" -G ${LEGACY_GROUP} -s /bin/sh -S -D ${LEGACY_USER} - fi - - # Edit the configuration according to the wizard - sed -i -e "s|@auth_password@|`LD_LIBRARY_PATH=${INSTALL_DIR}/lib ${BITLBEE} -x hash ${wizard_auth_password:=admin}`|g" ${CFG_FILE} - sed -i -e "s|@oper_password@|`LD_LIBRARY_PATH=${INSTALL_DIR}/lib ${BITLBEE} -x hash ${wizard_oper_password:=admin}`|g" ${CFG_FILE} - - # Correct the files ownership - chown -R ${USER}:root ${SYNOPKG_PKGDEST} - - # Add firewall config - ${SERVICETOOL} --install-configure-file --package ${FWPORTS} >> /dev/null - - exit 0 -} - -preuninst () -{ - # Stop the package - ${SSS} stop > /dev/null - - if [ "${SYNOPKG_PKG_STATUS}" != "UPGRADE" ]; then - # Remove the user (if not upgrading) - delgroup ${LEGACY_USER} ${LEGACY_GROUP} - deluser ${USER} - - # Remove firewall configuration - ${SERVICETOOL} --remove-configure-file --package ${PACKAGE}.sc >> /dev/null - fi - - exit 0 -} - -postuninst () -{ - # Remove link - rm -f ${INSTALL_DIR} - - exit 0 -} - -preupgrade () -{ - # Stop the package - ${SSS} stop > /dev/null - - # DSM6 Upgrade handling - if [ "${BUILDNUMBER}" -ge "7321" ] && [ ! -f ${DSM6_UPGRADE} ]; then - echo "Deleting legacy user" > ${DSM6_UPGRADE} - delgroup ${LEGACY_USER} ${LEGACY_GROUP} - deluser ${LEGACY_USER} - fi - - # Save some stuff - rm -fr ${TMP_DIR}/${PACKAGE} - mkdir -p ${TMP_DIR}/${PACKAGE} - mv ${INSTALL_DIR}/var ${TMP_DIR}/${PACKAGE}/ - - exit 0 -} - -postupgrade () -{ - # Restore some stuff - rm -fr ${INSTALL_DIR}/var - mv ${TMP_DIR}/${PACKAGE}/var ${INSTALL_DIR}/ - rm -fr ${TMP_DIR}/${PACKAGE} - - exit 0 -} diff --git a/spk/bitlbee/src/wizard/install_uifile b/spk/bitlbee/src/wizard/install_uifile deleted file mode 100644 index 30aed0fd43b..00000000000 --- a/spk/bitlbee/src/wizard/install_uifile +++ /dev/null @@ -1,18 +0,0 @@ -[{ - "step_title": "Basic configuration", - "items": [{ - "type": "password", - "desc": "Password the user should enter when logging into a closed BitlBee server. Defaults to admin", - "subitems": [{ - "key": "wizard_auth_password", - "desc": "Password" - }] - }, { - "type": "password", - "desc": "Password that unlocks access to special operator commands. Defaults to admin", - "subitems": [{ - "key": "wizard_oper_password", - "desc": "Password" - }] - }] -}] diff --git a/spk/bitlbee/src/wizard/install_uifile_fre b/spk/bitlbee/src/wizard/install_uifile_fre deleted file mode 100644 index 73cf935e3db..00000000000 --- a/spk/bitlbee/src/wizard/install_uifile_fre +++ /dev/null @@ -1,18 +0,0 @@ -[{ - "step_title": "Configuration de base", - "items": [{ - "type": "password", - "desc": "Mot de passe que doit saisir l'utilisateur lors de la connexion à un serveur BitlBee clôt. admin par défaut", - "subitems": [{ - "key": "wizard_auth_password", - "desc": "Mot de passe" - }] - }, { - "type": "password", - "desc": "Mot de passe déverrouillant l'accès aux commandes spéciales d'opérateur. admin par défaut", - "subitems": [{ - "key": "wizard_oper_password", - "desc": "Mot de passe" - }] - }] -}]