22378920 Move irssi from Desktop to Userland
authorMichael Nestler <Michael.Nestler@Oracle.COM>
Wed, 16 Dec 2015 15:56:59 -0800
changeset 5225 d3c7046a4000
parent 5224 388b8a6cf76b
child 5226 7296abc28544
22378920 Move irssi from Desktop to Userland
components/irssi/Makefile
components/irssi/irssi.p5m
components/irssi/patches/01-ssl.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/irssi/Makefile	Wed Dec 16 15:56:59 2015 -0800
@@ -0,0 +1,68 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=         irssi
+COMPONENT_VERSION=	0.8.15
+COMPONENT_PROJECT_URL=	https://irssi.org/
+COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.bz2
+COMPONENT_ARCHIVE_HASH=\
+	sha256:c12d16fb605103d7c256ddce44012dc396af57f3771e086d0387c195a052a0a6
+COMPONENT_ARCHIVE_URL=	https://github.com/irssi-import/irssi/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
+COMPONENT_BUGDB=	utility/irssi
+
+TPNO=		7900
+
+include $(WS_MAKE_RULES)/prep.mk
+include $(WS_MAKE_RULES)/configure.mk
+include $(WS_MAKE_RULES)/ips.mk
+
+ASLR_MODE = $(ASLR_ENABLE)
+
+# Part of the build just runs "cc" (not the path that configure finds).
+COMPONENT_BUILD_ENV +=  PATH=$(dir $(CC)):$(PATH)
+
+CONFIGURE_OPTIONS +=    --sysconfdir=/etc
+CONFIGURE_OPTIONS +=    --with-perl=yes
+CONFIGURE_OPTIONS +=    --with-proxy
+CONFIGURE_OPTIONS +=    --with-perl-lib=/usr/perl5/vendor_perl/$(PERL_VERSION)
+
+configure:	$(CONFIGURE_32)
+
+build:          $(BUILD_32)
+
+install:        $(INSTALL_32)
+
+test:           $(NO_TESTS)
+
+system-test:    $(NO_TESTS)
+
+REQUIRED_PACKAGES += library/glib2
+REQUIRED_PACKAGES += library/ncurses
+REQUIRED_PACKAGES += library/security/openssl
+REQUIRED_PACKAGES += runtime/perl-512
+REQUIRED_PACKAGES += system/library
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/irssi/irssi.p5m	Wed Dec 16 15:56:59 2015 -0800
@@ -0,0 +1,320 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+#
+
+<transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>
+<transform file path=usr/include/irssi/.* -> default facet.devel true>
+set name=pkg.fmri \
+    value=pkg:/network/chat/[email protected]$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="irssi - a terminal based IRC client"
+set name=pkg.description \
+    value="Irssi is a terminal based IRC client for UNIX systems."
+set name=com.oracle.info.description value="irssi - a terminal based IRC client"
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value=org.opensolaris.category.2008:Applications/Internet
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=LSARC/2008/481
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file path=etc/irssi.conf
+file path=usr/bin/irssi
+file path=usr/include/irssi/irssi-config.h
+file path=usr/include/irssi/irssi-version.h
+file path=usr/include/irssi/src/common.h
+file path=usr/include/irssi/src/core/args.h
+file path=usr/include/irssi/src/core/channel-rec.h
+file path=usr/include/irssi/src/core/channel-setup-rec.h
+file path=usr/include/irssi/src/core/channels-setup.h
+file path=usr/include/irssi/src/core/channels.h
+file path=usr/include/irssi/src/core/chat-protocols.h
+file path=usr/include/irssi/src/core/chatnet-rec.h
+file path=usr/include/irssi/src/core/chatnets.h
+file path=usr/include/irssi/src/core/commands.h
+file path=usr/include/irssi/src/core/core.h
+file path=usr/include/irssi/src/core/expandos.h
+file path=usr/include/irssi/src/core/ignore.h
+file path=usr/include/irssi/src/core/levels.h
+file path=usr/include/irssi/src/core/line-split.h
+file path=usr/include/irssi/src/core/log.h
+file path=usr/include/irssi/src/core/masks.h
+file path=usr/include/irssi/src/core/misc.h
+file path=usr/include/irssi/src/core/module.h
+file path=usr/include/irssi/src/core/modules-load.h
+file path=usr/include/irssi/src/core/modules.h
+file path=usr/include/irssi/src/core/net-disconnect.h
+file path=usr/include/irssi/src/core/net-nonblock.h
+file path=usr/include/irssi/src/core/net-sendbuffer.h
+file path=usr/include/irssi/src/core/network.h
+file path=usr/include/irssi/src/core/nick-rec.h
+file path=usr/include/irssi/src/core/nicklist.h
+file path=usr/include/irssi/src/core/nickmatch-cache.h
+file path=usr/include/irssi/src/core/pidwait.h
+file path=usr/include/irssi/src/core/queries.h
+file path=usr/include/irssi/src/core/query-rec.h
+file path=usr/include/irssi/src/core/rawlog.h
+file path=usr/include/irssi/src/core/recode.h
+file path=usr/include/irssi/src/core/server-connect-rec.h
+file path=usr/include/irssi/src/core/server-rec.h
+file path=usr/include/irssi/src/core/server-setup-rec.h
+file path=usr/include/irssi/src/core/servers-reconnect.h
+file path=usr/include/irssi/src/core/servers-setup.h
+file path=usr/include/irssi/src/core/servers.h
+file path=usr/include/irssi/src/core/session.h
+file path=usr/include/irssi/src/core/settings.h
+file path=usr/include/irssi/src/core/signals.h
+file path=usr/include/irssi/src/core/special-vars.h
+file path=usr/include/irssi/src/core/window-item-def.h
+file path=usr/include/irssi/src/core/window-item-rec.h
+file path=usr/include/irssi/src/core/write-buffer.h
+file path=usr/include/irssi/src/fe-common/core/chat-completion.h
+file path=usr/include/irssi/src/fe-common/core/command-history.h
+file path=usr/include/irssi/src/fe-common/core/completion.h
+file path=usr/include/irssi/src/fe-common/core/fe-channels.h
+file path=usr/include/irssi/src/fe-common/core/fe-common-core.h
+file path=usr/include/irssi/src/fe-common/core/fe-core-commands.h
+file path=usr/include/irssi/src/fe-common/core/fe-exec.h
+file path=usr/include/irssi/src/fe-common/core/fe-messages.h
+file path=usr/include/irssi/src/fe-common/core/fe-queries.h
+file path=usr/include/irssi/src/fe-common/core/fe-recode.h
+file path=usr/include/irssi/src/fe-common/core/fe-windows.h
+file path=usr/include/irssi/src/fe-common/core/formats.h
+file path=usr/include/irssi/src/fe-common/core/hilight-text.h
+file path=usr/include/irssi/src/fe-common/core/keyboard.h
+file path=usr/include/irssi/src/fe-common/core/module-formats.h
+file path=usr/include/irssi/src/fe-common/core/module.h
+file path=usr/include/irssi/src/fe-common/core/printtext.h
+file path=usr/include/irssi/src/fe-common/core/themes.h
+file path=usr/include/irssi/src/fe-common/core/window-activity.h
+file path=usr/include/irssi/src/fe-common/core/window-items.h
+file path=usr/include/irssi/src/fe-common/core/windows-layout.h
+file path=usr/include/irssi/src/fe-common/irc/dcc/fe-dcc.h
+file path=usr/include/irssi/src/fe-common/irc/dcc/module-formats.h
+file path=usr/include/irssi/src/fe-common/irc/dcc/module.h
+file path=usr/include/irssi/src/fe-common/irc/fe-irc-server.h
+file path=usr/include/irssi/src/fe-common/irc/module-formats.h
+file path=usr/include/irssi/src/fe-common/irc/module.h
+file path=usr/include/irssi/src/fe-common/irc/notifylist/module-formats.h
+file path=usr/include/irssi/src/fe-common/irc/notifylist/module.h
+file path=usr/include/irssi/src/fe-text/statusbar-item.h
+file path=usr/include/irssi/src/irc/core/bans.h
+file path=usr/include/irssi/src/irc/core/channel-rejoin.h
+file path=usr/include/irssi/src/irc/core/ctcp.h
+file path=usr/include/irssi/src/irc/core/irc-channels.h
+file path=usr/include/irssi/src/irc/core/irc-chatnets.h
+file path=usr/include/irssi/src/irc/core/irc-commands.h
+file path=usr/include/irssi/src/irc/core/irc-masks.h
+file path=usr/include/irssi/src/irc/core/irc-nicklist.h
+file path=usr/include/irssi/src/irc/core/irc-queries.h
+file path=usr/include/irssi/src/irc/core/irc-servers-setup.h
+file path=usr/include/irssi/src/irc/core/irc-servers.h
+file path=usr/include/irssi/src/irc/core/irc.h
+file path=usr/include/irssi/src/irc/core/mode-lists.h
+file path=usr/include/irssi/src/irc/core/modes.h
+file path=usr/include/irssi/src/irc/core/module.h
+file path=usr/include/irssi/src/irc/core/netsplit.h
+file path=usr/include/irssi/src/irc/core/servers-idle.h
+file path=usr/include/irssi/src/irc/core/servers-redirect.h
+file path=usr/include/irssi/src/irc/dcc/dcc-chat.h
+file path=usr/include/irssi/src/irc/dcc/dcc-file-rec.h
+file path=usr/include/irssi/src/irc/dcc/dcc-file.h
+file path=usr/include/irssi/src/irc/dcc/dcc-get.h
+file path=usr/include/irssi/src/irc/dcc/dcc-queue.h
+file path=usr/include/irssi/src/irc/dcc/dcc-rec.h
+file path=usr/include/irssi/src/irc/dcc/dcc-send.h
+file path=usr/include/irssi/src/irc/dcc/dcc-server.h
+file path=usr/include/irssi/src/irc/dcc/dcc.h
+file path=usr/include/irssi/src/irc/dcc/module.h
+file path=usr/include/irssi/src/irc/flood/module.h
+file path=usr/include/irssi/src/irc/notifylist/module.h
+file path=usr/include/irssi/src/irc/notifylist/notify-setup.h
+file path=usr/include/irssi/src/irc/notifylist/notifylist.h
+file path=usr/include/irssi/src/lib-config/iconfig.h
+file path=usr/include/irssi/src/lib-config/module.h
+file path=usr/lib/irssi/modules/libirc_proxy.so
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/Irssi.pm
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/Irssi/Irc.pm
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/Irssi/TextUI.pm
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/Irssi/UI.pm
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/auto/Irssi/.packlist
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/auto/Irssi/Irc/.packlist
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/auto/Irssi/Irc/Irc.bs
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/auto/Irssi/Irc/Irc.so
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/auto/Irssi/Irssi.bs
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/auto/Irssi/Irssi.so
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/auto/Irssi/TextUI/.packlist
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/auto/Irssi/TextUI/TextUI.bs
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/auto/Irssi/TextUI/TextUI.so
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/auto/Irssi/UI/.packlist
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/auto/Irssi/UI/UI.bs
+file path=usr/perl5/vendor_perl/$(PERL_VERSION)/$(PERL_ARCH)/auto/Irssi/UI/UI.so
+file path=usr/share/doc/irssi/design.txt
+file path=usr/share/doc/irssi/faq.html
+file path=usr/share/doc/irssi/faq.txt
+file path=usr/share/doc/irssi/formats.txt
+file path=usr/share/doc/irssi/manual.txt
+file path=usr/share/doc/irssi/perl.txt
+file path=usr/share/doc/irssi/signals.txt
+file path=usr/share/doc/irssi/special_vars.txt
+file path=usr/share/doc/irssi/startup-HOWTO.html
+file path=usr/share/irssi/help/accept
+file path=usr/share/irssi/help/action
+file path=usr/share/irssi/help/admin
+file path=usr/share/irssi/help/alias
+file path=usr/share/irssi/help/away
+file path=usr/share/irssi/help/ban
+file path=usr/share/irssi/help/beep
+file path=usr/share/irssi/help/bind
+file path=usr/share/irssi/help/cat
+file path=usr/share/irssi/help/cd
+file path=usr/share/irssi/help/channel
+file path=usr/share/irssi/help/clear
+file path=usr/share/irssi/help/completion
+file path=usr/share/irssi/help/connect
+file path=usr/share/irssi/help/ctcp
+file path=usr/share/irssi/help/cycle
+file path=usr/share/irssi/help/dcc
+file path=usr/share/irssi/help/dehilight
+file path=usr/share/irssi/help/deop
+file path=usr/share/irssi/help/devoice
+file path=usr/share/irssi/help/die
+file path=usr/share/irssi/help/disconnect
+file path=usr/share/irssi/help/echo
+file path=usr/share/irssi/help/eval
+file path=usr/share/irssi/help/exec
+file path=usr/share/irssi/help/flushbuffer
+file path=usr/share/irssi/help/format
+file path=usr/share/irssi/help/hash
+file path=usr/share/irssi/help/help
+file path=usr/share/irssi/help/hilight
+file path=usr/share/irssi/help/ignore
+file path=usr/share/irssi/help/info
+file path=usr/share/irssi/help/invite
+file path=usr/share/irssi/help/invitelist
+file path=usr/share/irssi/help/ircnet
+file path=usr/share/irssi/help/ison
+file path=usr/share/irssi/help/join
+file path=usr/share/irssi/help/kick
+file path=usr/share/irssi/help/kickban
+file path=usr/share/irssi/help/kill
+file path=usr/share/irssi/help/knock
+file path=usr/share/irssi/help/knockout
+file path=usr/share/irssi/help/lastlog
+file path=usr/share/irssi/help/layout
+file path=usr/share/irssi/help/levels
+file path=usr/share/irssi/help/links
+file path=usr/share/irssi/help/list
+file path=usr/share/irssi/help/load
+file path=usr/share/irssi/help/log
+file path=usr/share/irssi/help/lusers
+file path=usr/share/irssi/help/map
+file path=usr/share/irssi/help/me
+file path=usr/share/irssi/help/mircdcc
+file path=usr/share/irssi/help/mode
+file path=usr/share/irssi/help/motd
+file path=usr/share/irssi/help/msg
+file path=usr/share/irssi/help/names
+file path=usr/share/irssi/help/nctcp
+file path=usr/share/irssi/help/netsplit
+file path=usr/share/irssi/help/network
+file path=usr/share/irssi/help/nick
+file path=usr/share/irssi/help/note
+file path=usr/share/irssi/help/notice
+file path=usr/share/irssi/help/notify
+file path=usr/share/irssi/help/op
+file path=usr/share/irssi/help/oper
+file path=usr/share/irssi/help/part
+file path=usr/share/irssi/help/ping
+file path=usr/share/irssi/help/query
+file path=usr/share/irssi/help/quit
+file path=usr/share/irssi/help/quote
+file path=usr/share/irssi/help/rawlog
+file path=usr/share/irssi/help/recode
+file path=usr/share/irssi/help/reconnect
+file path=usr/share/irssi/help/rehash
+file path=usr/share/irssi/help/reload
+file path=usr/share/irssi/help/restart
+file path=usr/share/irssi/help/rmreconns
+file path=usr/share/irssi/help/rmrejoins
+file path=usr/share/irssi/help/rping
+file path=usr/share/irssi/help/save
+file path=usr/share/irssi/help/say
+file path=usr/share/irssi/help/sconnect
+file path=usr/share/irssi/help/script
+file path=usr/share/irssi/help/scrollback
+file path=usr/share/irssi/help/server
+file path=usr/share/irssi/help/servlist
+file path=usr/share/irssi/help/set
+file path=usr/share/irssi/help/silence
+file path=usr/share/irssi/help/squery
+file path=usr/share/irssi/help/squit
+file path=usr/share/irssi/help/stats
+file path=usr/share/irssi/help/statusbar
+file path=usr/share/irssi/help/time
+file path=usr/share/irssi/help/toggle
+file path=usr/share/irssi/help/topic
+file path=usr/share/irssi/help/trace
+file path=usr/share/irssi/help/ts
+file path=usr/share/irssi/help/unalias
+file path=usr/share/irssi/help/unban
+file path=usr/share/irssi/help/unignore
+file path=usr/share/irssi/help/unload
+file path=usr/share/irssi/help/unnotify
+file path=usr/share/irssi/help/unquery
+file path=usr/share/irssi/help/unsilence
+file path=usr/share/irssi/help/upgrade
+file path=usr/share/irssi/help/uping
+file path=usr/share/irssi/help/userhost
+file path=usr/share/irssi/help/ver
+file path=usr/share/irssi/help/version
+file path=usr/share/irssi/help/voice
+file path=usr/share/irssi/help/wait
+file path=usr/share/irssi/help/wall
+file path=usr/share/irssi/help/wallops
+file path=usr/share/irssi/help/watch
+file path=usr/share/irssi/help/who
+file path=usr/share/irssi/help/whois
+file path=usr/share/irssi/help/whowas
+file path=usr/share/irssi/help/window
+file path=usr/share/irssi/help/wjoin
+file path=usr/share/irssi/help/wquery
+file path=usr/share/irssi/scripts/autoop.pl
+file path=usr/share/irssi/scripts/autorejoin.pl
+file path=usr/share/irssi/scripts/buf.pl
+file path=usr/share/irssi/scripts/command.pl
+file path=usr/share/irssi/scripts/dns.pl
+file path=usr/share/irssi/scripts/kills.pl
+file path=usr/share/irssi/scripts/mail.pl
+file path=usr/share/irssi/scripts/mlock.pl
+file path=usr/share/irssi/scripts/msg-event.pl
+file path=usr/share/irssi/scripts/quitmsg.pl
+file path=usr/share/irssi/scripts/redirect.pl
+file path=usr/share/irssi/scripts/sb_search.pl
+file path=usr/share/irssi/scripts/scriptassist.pl
+file path=usr/share/irssi/scripts/splitlong.pl
+file path=usr/share/irssi/scripts/usercount.pl
+file path=usr/share/irssi/themes/colorless.theme
+file path=usr/share/irssi/themes/default.theme
+file path=usr/share/man/man1/irssi.1
+license COPYING license=GPLv2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/irssi/patches/01-ssl.patch	Wed Dec 16 15:56:59 2015 -0800
@@ -0,0 +1,13 @@
+# Disable SSLv2, SSLv3, and TLSv1.
+# Upstream has disabled SSLv2 and SSLv3. Disabling of TLSv1 will not go upstream
+
+--- irssi-0.8.15/src/core/network-openssl.c.orig	Wed Dec 16 10:30:52 2015
++++ irssi-0.8.15/src/core/network-openssl.c	Wed Dec 16 10:30:27 2015
[email protected]@ -406,6 +406,7 @@
+ 		g_error("Could not allocate memory for SSL context");
+ 		return NULL;
+ 	}
++	SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1);
+ 
+ 	if (mycert && *mycert) {
+ 		char *scert = NULL, *spkey = NULL;