[minetest] Initial import (#753513).
bookwar
bookwar at fedoraproject.org
Fri Dec 9 13:12:00 UTC 2011
commit d2f3de2f14ebb8eb6738b9eb74b63542b62af1b0
Author: Aleksandra Bookwar <alpha at bookwar.info>
Date: Fri Dec 9 13:15:44 2011 +0100
Initial import (#753513).
.gitignore | 1 +
minetest.README | 38 +++++++++++
minetest.desktop | 10 +++
minetest.logrotate | 5 ++
minetest.rsyslog | 6 ++
minetest.service | 13 ++++
minetest.spec | 186 ++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
8 files changed, 260 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..81b9f0b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/minetest-0.3.1.tar.gz
diff --git a/minetest.README b/minetest.README
new file mode 100644
index 0000000..c4c84f3
--- /dev/null
+++ b/minetest.README
@@ -0,0 +1,38 @@
+== How to start ==
+
+To run the game use the command 'minetest' or choose Minetest from
+applications menu.
+
+To start simple single-user game leave the Server field blank. The
+local Minetest server will be created automatically on the specified
+port. Local server configuration and data will be saved in ~/.minetest
+folder.
+
+To connect to the existing Minetest server specify the server name (or
+IP) and port number. Server name might be 'localhost' as well.
+
+Check the Wiki for gameplay details:
+http://c55.me/minetest/wiki/doku.php?id=crafting
+
+Available public servers:
+http://c55.me/minetest/wiki/doku.php?id=public_servers
+
+== Minetest server ==
+
+To run the system-wide Minetest server use the command
+# systemctl start minetest.service
+
+To make Minetest server run on boot use
+# systemctl enable minetest.service
+
+Minetest server uses configuration file /etc/minetest.conf. It listens
+to the port 30000 and stores the data in /var/lib/minetest. This can
+be changed by editing the systemd unit.
+
+Minetest-server also provides the rsyslog configuration file. You need
+to restart the rsyslog daemon after minetest installation for this
+file to take effect. After rsyslog restart minetest logs will be put
+in /var/log/minetest.log
+
+Check the project Wiki for server commands and privilege system
+http://c55.me/minetest/wiki/doku.php?id=server_commands
diff --git a/minetest.desktop b/minetest.desktop
new file mode 100644
index 0000000..b785f3f
--- /dev/null
+++ b/minetest.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Minetest
+GenericName=Minetest
+Comment=Multiplayer infinite-world block sandbox
+Exec=minetest
+Icon=minetest-icon
+Terminal=false
+Type=Application
+Categories=Game;
+StartupNotify=false
diff --git a/minetest.logrotate b/minetest.logrotate
new file mode 100644
index 0000000..7551501
--- /dev/null
+++ b/minetest.logrotate
@@ -0,0 +1,5 @@
+/var/log/minetest.log {
+ copytruncate
+ notifempty
+ missingok
+}
diff --git a/minetest.rsyslog b/minetest.rsyslog
new file mode 100644
index 0000000..4cc34fa
--- /dev/null
+++ b/minetest.rsyslog
@@ -0,0 +1,6 @@
+# Log minetest generated log messages to file
+:programname, isequal, "minetestserver" /var/log/minetest.log
+
+# comment out the following line to allow minetest messages through.
+# Doing so means you'll also get minetest messages in /var/log/messages
+& ~
\ No newline at end of file
diff --git a/minetest.service b/minetest.service
new file mode 100644
index 0000000..c1e3a4b
--- /dev/null
+++ b/minetest.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Minetest multiplayer server
+After=syslog.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/minetestserver --config /etc/minetest.conf --port 30000 --map-dir /var/lib/minetest
+
+User=minetest
+Group=minetest
+
+[Install]
+WantedBy=multi-user.target
diff --git a/minetest.spec b/minetest.spec
new file mode 100644
index 0000000..40a91ff
--- /dev/null
+++ b/minetest.spec
@@ -0,0 +1,186 @@
+%global gitcommit bc0e5c0
+%global gitname celeron55
+
+Name: minetest
+Version: 0.3.1
+Release: 6%{?dist}
+Summary: Multiplayer infinite-world block sandbox with survival mode
+
+Group: Amusements/Games
+License: GPLv2+
+URL: http://celeron.55.lt/minetest/
+
+# curl -L -O http://github.com/celeron55/minetest/tarball/0.3.1/minetest-0.3.1.tar.gz
+# wget https://raw.github.com/RussianFedora/minetest/fedora/minetest.desktop
+# wget https://raw.github.com/RussianFedora/minetest/fedora/minetest.service
+# wget https://raw.github.com/RussianFedora/minetest/fedora/minetest.rsyslog
+# wget https://raw.github.com/RussianFedora/minetest/fedora/minetest.logrotate
+# wget https://raw.github.com/RussianFedora/minetest/fedora/minetest.README
+
+Source0: http://github.com/%{gitname}/%{name}/tarball/%{version}/%{name}-%{version}.tar.gz
+Source1: %{name}.desktop
+Source2: %{name}.service
+Source3: %{name}.rsyslog
+Source4: %{name}.logrotate
+Source5: %{name}.README
+
+BuildRequires: cmake >= 2.6.0
+BuildRequires: irrlicht-devel
+BuildRequires: bzip2-devel gettext-devel jthread-devel sqlite-devel
+BuildRequires: libpng-devel libjpeg-turbo-devel libXxf86vm mesa-libGL-devel
+BuildRequires: desktop-file-utils
+BuildRequires: systemd-units
+
+Requires: %{name}-server = %{version}-%{release}
+Requires: hicolor-icon-theme
+
+%description
+Game of mining, crafting and building in the infinite world of cubic
+blocks with optional hostile creatures, features both single and the
+network multiplayer mode. There are no in-game sounds yet
+
+%package server
+Summary: Minetest multiplayer server
+Group: Amusements/Games
+
+Requires(pre): shadow-utils
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
+
+
+%description server
+Minetest multiplayer server. This package does not require X Window System
+
+%prep
+%setup -q -n %{gitname}-%{name}-%{gitcommit}
+
+%build
+%cmake -DJTHREAD_INCLUDE_DIR=%{_includedir}/jthread .
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# Put icon in the new fdo location
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps
+cp -p %{name}-icon.svg $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps
+
+# Add desktop file
+desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}
+
+# Systemd unit file
+mkdir -p $RPM_BUILD_ROOT%{_unitdir}
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}
+
+# /etc/rsyslog.d/minetest.conf
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rsyslog.d
+cp -p %{SOURCE3} $RPM_BUILD_ROOT/%{_sysconfdir}/rsyslog.d/%{name}.conf
+
+# /etc/logrotate.d/minetest
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d
+cp -p %{SOURCE4} $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/%{name}-server
+
+# /var/lib/minetest directory for server data files
+mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}
+
+# /etc/minetest.conf
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
+cp -p minetest.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
+
+cp -p %{SOURCE5} README.fedora
+
+# Move doc directory back to the sources
+mkdir __doc
+mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/* __doc
+rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
+
+%find_lang %{name}
+
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+ /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%pre server
+getent group %{name} >/dev/null || groupadd -r %{name}
+getent passwd %{name} >/dev/null || \
+ useradd -r -g %{name} -d /var/lib/%{name} -s /sbin/nologin \
+ -c "Minetest multiplayer server" %{name}
+exit 0
+
+%post server
+if [ $1 -eq 1 ] ; then
+ # Initial installation
+ /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+fi
+
+%preun server
+if [ $1 -eq 0 ] ; then
+ # Package removal, not upgrade
+ /bin/systemctl --no-reload disable %{name}.service > /dev/null 2>&1 || :
+ /bin/systemctl stop %{name}.service > /dev/null 2>&1 || :
+fi
+
+%postun server
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+if [ $1 -ge 1 ] ; then
+ # Package upgrade, not uninstall
+ /bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
+fi
+
+%files -f %{name}.lang
+%doc doc/changelog.txt doc/gpl-2.0.txt README.fedora
+%{_bindir}/%{name}
+%{_datadir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/scalable/apps/%{name}-icon.svg
+
+%files server
+%doc README.txt doc/changelog.txt doc/gpl-2.0.txt doc/mapformat.txt doc/protocol.txt README.fedora
+%{_bindir}/%{name}server
+%{_unitdir}/%{name}.service
+%config(noreplace) %{_sysconfdir}/%{name}.conf
+%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-server
+%config(noreplace) %{_sysconfdir}/rsyslog.d/%{name}.conf
+%attr(0755,minetest,minetest) %dir %{_sharedstatedir}/%{name}
+
+
+%changelog
+* Thu Dec 8 2011 Aleksandra Bookwar <alpha at bookwar.info> - 0.3.1-6
+- Fixed docs for minetest package
+
+* Mon Dec 5 2011 Aleksandra Bookwar <alpha at bookwar.info> - 0.3.1-5
+- Changed tarball and logrotate names, removed git commit, new README file.
+
+* Mon Nov 14 2011 Aleksandra Bookwar <alpha at bookwar.info> - 0.3.1-4.gitbc0e5c0
+- Removed clean section and defattr according to guidelines
+
+* Sat Nov 13 2011 Aleksandra Bookwar <alpha at bookwar.info> - 0.3.1-3.gitbc0e5c0
+- Systemd unit file, rsyslog, user/group and other server-related fixes
+- Fixed Release tag for Fedora review
+
+* Sat Nov 12 2011 Aleksandra Bookwar <alpha at bookwar.info> - 0.3.1-2.gitbc0e5c0.R
+- Fixed doc directories
+- Split package into main and -server parts
+
+* Wed Nov 9 2011 Aleksandra Bookwar <alpha at bookwar.info> - 0.3.1-1.gitbc0e5c0.R
+- Update to stable 0.3.1 version
+
+* Thu Nov 3 2011 Aleksandra Bookwar <alpha at bookwar.info> - 0.3.0-1.gitf65d157.R
+- Update to stable 0.3.0 version
+
+* Fri Sep 30 2011 Aleksandra Bookwar <alpha at bookwar.info> - 0.2.20110922_2-2.git960009d
+- Desktop file and icon
+
+* Fri Sep 30 2011 Aleksandra Bookwar <alpha at bookwar.info> - 0.2.20110922_2-1.git960009d
+- Basic build of the current stable version
diff --git a/sources b/sources
index e69de29..cc92893 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a524f22bece05b21410be54db93aaa90 minetest-0.3.1.tar.gz
More information about the scm-commits
mailing list