SHA256
1
0
forked from pool/atheme

Accepting request 142631 from server:irc

- Update to new upstream release 7.0.5

OBS-URL: https://build.opensuse.org/request/show/142631
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/atheme?expand=0&rev=10
This commit is contained in:
Stephan Kulow 2012-11-24 19:42:16 +00:00 committed by Git OBS Bridge
commit f9249a457c
10 changed files with 159 additions and 115 deletions

View File

@ -7,10 +7,10 @@ Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
dist/atheme.conf.example | 46 +++++++++++++++++++++++----------------------- dist/atheme.conf.example | 46 +++++++++++++++++++++++-----------------------
1 file changed, 23 insertions(+), 23 deletions(-) 1 file changed, 23 insertions(+), 23 deletions(-)
Index: atheme-services-7.0.2/dist/atheme.conf.example Index: atheme-services-7.0.5/dist/atheme.conf.example
=================================================================== ===================================================================
--- atheme-services-7.0.2.orig/dist/atheme.conf.example --- atheme-services-7.0.5.orig/dist/atheme.conf.example
+++ atheme-services-7.0.2/dist/atheme.conf.example +++ atheme-services-7.0.5/dist/atheme.conf.example
@@ -708,7 +708,7 @@ loadmodule "modules/groupserv/set_url"; @@ -708,7 +708,7 @@ loadmodule "modules/groupserv/set_url";
* *
* HTTP Server modules/misc/httpd * HTTP Server modules/misc/httpd
@ -76,7 +76,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
// port // port
// The port to connect to. // The port to connect to.
@@ -961,7 +961,7 @@ nickserv { @@ -962,7 +962,7 @@ nickserv {
/* (*)host /* (*)host
* The hostname we want NickServ to have. * The hostname we want NickServ to have.
*/ */
@ -85,7 +85,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The realname (gecos) information we want NickServ to have. * The realname (gecos) information we want NickServ to have.
@@ -1052,7 +1052,7 @@ chanserv { @@ -1053,7 +1053,7 @@ chanserv {
/* (*)host /* (*)host
* The hostname we want the client to have. * The hostname we want the client to have.
*/ */
@ -94,7 +94,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The GECOS of the client. * The GECOS of the client.
@@ -1076,7 +1076,7 @@ chanserv { @@ -1077,7 +1077,7 @@ chanserv {
* use a lot of CPU up, and will only work if you have * use a lot of CPU up, and will only work if you have
* join_chans (in general) enabled as well. * join_chans (in general) enabled as well.
*/ */
@ -103,7 +103,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*) hide_xop /* (*) hide_xop
* Hide the XOP templates from sight. This is useful if you * Hide the XOP templates from sight. This is useful if you
@@ -1242,7 +1242,7 @@ global { @@ -1243,7 +1243,7 @@ global {
/* (*)host /* (*)host
* The hostname used for this client. * The hostname used for this client.
*/ */
@ -112,7 +112,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The GECOS (real name) of the client. * The GECOS (real name) of the client.
@@ -1271,7 +1271,7 @@ infoserv { @@ -1272,7 +1272,7 @@ infoserv {
/* (*)host /* (*)host
* The hostname used for this client, * The hostname used for this client,
*/ */
@ -121,7 +121,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The GECOS (real name) of the client. * The GECOS (real name) of the client.
@@ -1307,7 +1307,7 @@ operserv { @@ -1308,7 +1308,7 @@ operserv {
/* (*)host /* (*)host
* The hostname used for this client. * The hostname used for this client.
*/ */
@ -130,7 +130,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The GECOS (real name) of the client. * The GECOS (real name) of the client.
@@ -1348,7 +1348,7 @@ saslserv { @@ -1349,7 +1349,7 @@ saslserv {
/* (*)host /* (*)host
* The hostname we want SaslServ to have. * The hostname we want SaslServ to have.
*/ */
@ -139,7 +139,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The realname (gecos) information we want SaslServ to have. * The realname (gecos) information we want SaslServ to have.
@@ -1377,7 +1377,7 @@ memoserv { @@ -1378,7 +1378,7 @@ memoserv {
/* (*)host /* (*)host
* The hostname we want MemoServ to have. * The hostname we want MemoServ to have.
*/ */
@ -148,7 +148,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The realname (gecos) information we want MemoServ to have. * The realname (gecos) information we want MemoServ to have.
@@ -1417,7 +1417,7 @@ gameserv { @@ -1418,7 +1418,7 @@ gameserv {
/* (*)host /* (*)host
* The hostname used for this client. * The hostname used for this client.
*/ */
@ -157,7 +157,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The GECOS (real name) of the client. * The GECOS (real name) of the client.
@@ -1457,7 +1457,7 @@ rpgserv { @@ -1458,7 +1458,7 @@ rpgserv {
/* (*)host /* (*)host
* The hostname used for this client. * The hostname used for this client.
*/ */
@ -166,7 +166,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The GECOS (real name) of the client. * The GECOS (real name) of the client.
@@ -1532,7 +1532,7 @@ groupserv { @@ -1533,7 +1533,7 @@ groupserv {
/* (*)host /* (*)host
* The hostname we want GroupServ to have. * The hostname we want GroupServ to have.
*/ */
@ -175,7 +175,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The realname (gecos) information we want GroupServ to have. * The realname (gecos) information we want GroupServ to have.
@@ -1597,7 +1597,7 @@ hostserv { @@ -1598,7 +1598,7 @@ hostserv {
/* (*)host /* (*)host
* The hostname used for this client. * The hostname used for this client.
*/ */
@ -184,7 +184,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The GECOS (real name) of the client. * The GECOS (real name) of the client.
@@ -1646,7 +1646,7 @@ helpserv { @@ -1647,7 +1647,7 @@ helpserv {
/* (*)host /* (*)host
* The hostname we want HelpServ to have. * The hostname we want HelpServ to have.
*/ */
@ -193,7 +193,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The realname (gecos) information we want HelpServ to have. * The realname (gecos) information we want HelpServ to have.
@@ -1700,7 +1700,7 @@ alis { @@ -1701,7 +1701,7 @@ alis {
/* (*)host /* (*)host
* The hostname we want ALIS to have. * The hostname we want ALIS to have.
*/ */
@ -202,7 +202,7 @@ Index: atheme-services-7.0.2/dist/atheme.conf.example
/* (*)real /* (*)real
* The realname (gecos) information we want ALIS to have. * The realname (gecos) information we want ALIS to have.
@@ -1868,7 +1868,7 @@ general { @@ -1869,7 +1869,7 @@ general {
* network channels by keeping them open, and to preserve the * network channels by keeping them open, and to preserve the
* topic and +beI lists. * topic and +beI lists.
*/ */

54
atheme-nodate.diff Normal file
View File

@ -0,0 +1,54 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2012-10-28 01:35:57.295975255 +0200
__DATE__ is not desired; causes unnecessary rebuilds.
---
libathemecore/ctcp-common.c | 4 ++--
libathemecore/ptasks.c | 4 ++--
modules/operserv/uptime.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
Index: atheme-services-7.0.5/libathemecore/ctcp-common.c
===================================================================
--- atheme-services-7.0.5.orig/libathemecore/ctcp-common.c
+++ atheme-services-7.0.5/libathemecore/ctcp-common.c
@@ -41,8 +41,8 @@ static void ctcp_ping_handler(sourceinfo
static void ctcp_version_handler(sourceinfo_t *si, char *cmd, char *args)
{
notice(si->service->nick, si->su->nick,
- "\001VERSION %s. %s %s %s [%s] Build Date: %s\001",
- PACKAGE_STRING, revision, me.name, get_conf_opts(), ircd->ircdname, __DATE__);
+ "\001VERSION %s. %s %s %s [%s] Build Date: irrelevant\001",
+ PACKAGE_STRING, revision, me.name, get_conf_opts(), ircd->ircdname);
}
static void ctcp_clientinfo_handler(sourceinfo_t *si, char *cmd, char *args)
Index: atheme-services-7.0.5/libathemecore/ptasks.c
===================================================================
--- atheme-services-7.0.5.orig/libathemecore/ptasks.c
+++ atheme-services-7.0.5/libathemecore/ptasks.c
@@ -49,8 +49,8 @@ void handle_version(user_t *u)
if (floodcheck(u, NULL))
return;
- numeric_sts(me.me, 351, u, "%s. %s %s :%s [%s] Build Date: %s",
- PACKAGE_STRING, me.name, revision, get_conf_opts(), ircd->ircdname, __DATE__);
+ numeric_sts(me.me, 351, u, "%s. %s %s :%s [%s] Build Date: irrelevant",
+ PACKAGE_STRING, me.name, revision, get_conf_opts(), ircd->ircdname);
}
void handle_admin(user_t *u)
Index: atheme-services-7.0.5/modules/operserv/uptime.c
===================================================================
--- atheme-services-7.0.5.orig/modules/operserv/uptime.c
+++ atheme-services-7.0.5/modules/operserv/uptime.c
@@ -33,7 +33,7 @@ static void os_cmd_uptime(sourceinfo_t *
{
logcommand(si, CMDLOG_GET, "UPTIME");
- command_success_nodata(si, "%s [%s] Build Date: %s", PACKAGE_STRING, revision, __DATE__);
+ command_success_nodata(si, "%s [%s] Build Date: irrelevant", PACKAGE_STRING, revision);
command_success_nodata(si, _("Services have been up for %s"), timediff(CURRTIME - me.start));
command_success_nodata(si, _("Current PID: %d"), getpid());
command_success_nodata(si, _("Registered accounts: %d"), cnt.myuser);

View File

@ -1,47 +0,0 @@
parent 418376c88519e3585e1b2c34fba133b7cc015985 (atheme-services-7.0.0-alpha7-627-g418376c)
commit 0c5c860727019adc6ddb2e8b6f29268e51377cb3
Author: Jan Engelhardt <jengelh@inai.de>
Date: Wed Jun 6 21:43:09 2012 +0200
build: avoid undefined variables in .pc file
Here is an odd thing. If an undeclared variable is used, `pkg-config
--print-provides foo.pc` will not show anything. The default value
for MODDIR is "${libdir}/atheme/modules", but atheme-services.pc
uses the non-standard "lib_dir".
So, just use the standard names (without underscore) like everybody
else, to make dependency discovery with pkgconfig working again.
---
atheme-services.pc.in | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/atheme-services.pc.in b/atheme-services.pc.in
index 97b21ad..84e52c8 100644
--- a/atheme-services.pc.in
+++ b/atheme-services.pc.in
@@ -1,16 +1,16 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
datarootdir=@datarootdir@
-data_dir=@datadir@/@PACKAGE_NAME@
+datadir=@datadir@/@PACKAGE_NAME@
+
MODDIR=@MODDIR@/modules
-
version=@PACKAGE_VERSION@
-include_dir=@includedir@/@PACKAGE_NAME@
-lib_dir=@libdir@
+includedir=@includedir@/@PACKAGE_NAME@
+libdir=@libdir@
Name: atheme-services
Description: Atheme IRC services (for building modules)
Version: @PACKAGE_VERSION@
-Libs: -L${lib_dir} -lathemecore
-Cflags: -I${include_dir}
+Libs: -L${libdir} -lathemecore
+Cflags: -I${includedir}
--
# Created with git-export-patch

View File

@ -1,32 +0,0 @@
parent 0c5c860727019adc6ddb2e8b6f29268e51377cb3 (atheme-services-7.0.0-alpha7-628-g0c5c860)
commit abfcdb30b6f537ccf7f525797fb90e5957edd254
Author: Jan Engelhardt <jengelh@inai.de>
Date: Wed Jun 6 22:41:00 2012 +0200
build: respect evaluation order in .pc file
Same as before with unresolved variable.
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
---
atheme-services.pc.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/atheme-services.pc.in b/atheme-services.pc.in
index 84e52c8..da8d294 100644
--- a/atheme-services.pc.in
+++ b/atheme-services.pc.in
@@ -3,10 +3,10 @@ exec_prefix=@exec_prefix@
datarootdir=@datarootdir@
datadir=@datadir@/@PACKAGE_NAME@
-MODDIR=@MODDIR@/modules
version=@PACKAGE_VERSION@
includedir=@includedir@/@PACKAGE_NAME@
libdir=@libdir@
+MODDIR=@MODDIR@/modules
Name: atheme-services
Description: Atheme IRC services (for building modules)
--
# Created with git-export-patch

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:65132175aa421a23ccba2a8e804d4490b4f32fc25e428fc633c6a2a5edcacb39
size 870312

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:25271eb1e9218ceeec87824dbe90a2bfc59f116e258b6ee803573dfa8c4fcc30
size 1062605

1
atheme-tmpfiles.conf Normal file
View File

@ -0,0 +1 @@
d /run/atheme 0750 atheme atheme -

View File

@ -1,3 +1,27 @@
-------------------------------------------------------------------
Wed Nov 21 00:00:07 UTC 2012 - jengelh@inai.de
- Update to new upstream release 7.0.5
* ircd/unreal: fix memory corruption caused by strlcpy() against
a strshare-managed string
* ircd/ircd-seven: support charybdis's extension channel modes
* chanserv/sync: sync a channel on account registration. This
allows exttargets like $registered to react to new account
registrations.
* chanserv/main: send MLOCK after a TS change, otherwise it
will be lost.
* chanserv/flags: allow users with +f and +o (+v) to set +/-O and
+/-V on themselves.
* chanserv/main: respect founder_flags config setting during
channel succession
- Add atheme-nodate.diff which removes __DATE__ from source
-------------------------------------------------------------------
Mon Nov 19 17:12:57 UTC 2012 - dimstar@opensuse.org
- Fix useradd invocation: -o is useless without -u and newer
versions of pwdutils/shadowutils fail on this now.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 31 12:55:59 UTC 2012 - jengelh@inai.de Thu May 31 12:55:59 UTC 2012 - jengelh@inai.de

10
atheme.service Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Atheme IRC Services
[Service]
ExecStart=/usr/sbin/atheme-services
User=atheme
Group=atheme
[Install]
WantedBy=multi-user.target

View File

@ -19,7 +19,7 @@
Name: atheme Name: atheme
%define pkg_name atheme-services %define pkg_name atheme-services
%define lname libathemecore1 %define lname libathemecore1
Version: 7.0.2 Version: 7.0.5
Release: 0 Release: 0
Url: http://atheme.net/ Url: http://atheme.net/
Summary: A portable, secure set of open source, modular IRC services Summary: A portable, secure set of open source, modular IRC services
@ -27,20 +27,22 @@ License: MIT
Group: Productivity/Networking/IRC Group: Productivity/Networking/IRC
#Git-Clone: git://github.com/atheme/atheme #Git-Clone: git://github.com/atheme/atheme
#DL-URL: http://atheme.net/downloads/atheme-services-6.0.10.tar.bz2 Source: http://www.atheme.net/downloads/atheme-services-%version.tar.bz2
Source: %name-services-%version.tar.xz
Source1: atheme.init Source1: atheme.init
Source2: atheme.service
Source3: atheme-tmpfiles.conf
Patch1: atheme-lockmodes.diff Patch1: atheme-lockmodes.diff
Patch2: atheme-config.diff Patch2: atheme-config.diff
Patch3: atheme-pkgconfig.diff Patch3: atheme-nodate.diff
Patch4: atheme-pkgconfig2.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cracklib-devel BuildRequires: cracklib-devel
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: libopenssl-devel BuildRequires: libopenssl-devel
BuildRequires: openldap2-devel BuildRequires: openldap2-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: xz %if 0%{?suse_version} >= 1210
BuildRequires: systemd
%endif
BuildRequires: pkgconfig(libmowgli-2) >= 2.0.0 BuildRequires: pkgconfig(libmowgli-2) >= 2.0.0
BuildRequires: pkgconfig(libpcre) BuildRequires: pkgconfig(libpcre)
%define atheme_home /var/lib/atheme %define atheme_home /var/lib/atheme
@ -70,17 +72,22 @@ Group: Development/Libraries/C and C++
Requires: %lname = %version Requires: %lname = %version
%description devel %description devel
Atheme is a portable, secure set of open source, modular IRC services
released under the BSD license, designed to run on many IRCds.
This package contains the development headers for the library found This package contains the development headers for the library found
in %lname. in %lname.
%prep %prep
%setup -qn %name-services-%version %setup -qn %name-services-%version
%patch -P 1 -P 2 -P 3 -P 4 -p1 %patch -P 1 -P 2 -P 3 -p1
# use system libmowgli # use system libmowgli
rm -Rf libmowgli*; rm -Rf libmowgli*;
%build %build
%if 0%{?suse_version} >= 1210
export RUNDIR="/run";
%endif
%if 0%{?suse_version} > 1000 && 0%{?suse_version} < 1030 %if 0%{?suse_version} > 1000 && 0%{?suse_version} < 1030
export CFLAGS="%optflags -fstack-protector" export CFLAGS="%optflags -fstack-protector"
%endif %endif
@ -97,8 +104,11 @@ export CFLAGS="%optflags -fstack-protector"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%if 0%{?suse_version} >= 1210
export RUNDIR="/run";
%endif
b="%buildroot"; b="%buildroot";
%makeinstall DOCDIR="%_docdir/%name" make install DESTDIR="%buildroot" DOCDIR="%_docdir/%name";
# additional documentation # additional documentation
mkdir -p "$b/%_docdir/%name" mkdir -p "$b/%_docdir/%name"
@ -109,29 +119,48 @@ install -m 0644 contrib/*.php contrib/*.pl TODO "$b/%_docdir/%name"
install -Dm 0755 "%{S:1}" "$b/%_sysconfdir/init.d/%name"; install -Dm 0755 "%{S:1}" "$b/%_sysconfdir/init.d/%name";
ln -sf "%_sysconfdir/init.d/%name" "$b/%_sbindir/rc%name"; ln -sf "%_sysconfdir/init.d/%name" "$b/%_sbindir/rc%name";
%if 0%{?_unitdir:1}
mkdir -p "$b/%_unitdir" "$b/%_libexecdir/tmpfiles.d";
install -pm0644 "%{S:2}" "$b/%_unitdir/";
install -pm0644 "%{S:3}" "$b/%_libexecdir/tmpfiles.d/atheme.conf";
%endif
# config files # config files
# TODO: check if we should change any defaults and patch it. # TODO: check if we should change any defaults and patch it.
cp -v "$b/%_sysconfdir/%name"/atheme.conf{.example,} cp -v "$b/%_sysconfdir/%name"/atheme.conf{.example,}
cp -v "$b/%_sysconfdir/%name"/atheme.motd{.example,} cp -v "$b/%_sysconfdir/%name"/atheme.motd{.example,}
%find_lang %name %find_lang %name
%fdupes %buildroot %fdupes %buildroot/%_prefix
%pre %pre
/usr/bin/getent group atheme >/dev/null 2>/dev/null || \ /usr/bin/getent group atheme >/dev/null 2>/dev/null || \
/usr/sbin/groupadd -r atheme >/dev/null || :; /usr/sbin/groupadd -r atheme >/dev/null || :;
/usr/bin/getent passwd atheme >/dev/null 2>/dev/null || \ /usr/bin/getent passwd atheme >/dev/null 2>/dev/null || \
/usr/sbin/useradd -r -o -g atheme -s /bin/false \ /usr/sbin/useradd -r -g atheme -s /bin/false \
-c "%name daemon" -d "%atheme_home" atheme >/dev/null || :; -c "Atheme IRC Services daemon" -d "%atheme_home" \
atheme >/dev/null || :;
%preun %if 0%{?_unitdir:1}
%stop_on_removal %name %service_add_pre atheme.service
%endif
%post %post
%fillup_and_insserv %name %fillup_and_insserv %name
%if 0%{?_unitdir:1}
%service_add_post atheme.service
%endif
%preun
%stop_on_removal %name
%if 0%{?_unitdir:1}
%service_del_preun atheme.service
%endif
%postun %postun
%restart_on_update %name %restart_on_update %name
%insserv_cleanup %insserv_cleanup
%if 0%{?_unitdir:1}
%service_del_postun atheme.service
%endif
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
@ -151,8 +180,13 @@ cp -v "$b/%_sysconfdir/%name"/atheme.motd{.example,}
%_datadir/%name %_datadir/%name
%doc %_docdir/%name %doc %_docdir/%name
%dir %attr(750,atheme,atheme) %atheme_home %dir %attr(750,atheme,atheme) %atheme_home
%dir %attr(750,atheme,atheme) %atheme_run
%dir %attr(750,atheme,atheme) %atheme_log %dir %attr(750,atheme,atheme) %atheme_log
%if 0%{?_unitdir:1}
%_unitdir/*.service
%_libexecdir/tmpfiles.d
%else
%dir %attr(750,atheme,atheme) %atheme_run
%endif
%files -n %lname %files -n %lname
%defattr(-,root,root) %defattr(-,root,root)