Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 660e84dc7c | |||
| 2721e84c46 |
2
_service
2
_service
@@ -1,3 +1,3 @@
|
||||
<services>
|
||||
<service name="download_files" mode="localonly" />
|
||||
<service name="download_files" mode="manual" />
|
||||
</services>
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 29 17:00:38 UTC 2025 - Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net>
|
||||
|
||||
- Version 1.17:
|
||||
* Don't include ../ in the root directory list.
|
||||
* Return a more accurate error when a directory open fails.
|
||||
* Add mtime to directory listings and make it xbmc/kodi compatible.
|
||||
* Add --single-file.
|
||||
* Accept absolute-form URLs.
|
||||
* Add --hide-dotfiles.
|
||||
- Switch source service from local to manual
|
||||
- Switch to macros for common directories
|
||||
- Refactor user/group handling to sysusers
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 28 23:37:03 UTC 2024 - Joshua Smith <jsmithfpv@gmail.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package darkhttpd
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,9 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
%define pkg_home %{_localstatedir}/lib/%{name}
|
||||
%define pkg_home %{_sharedstatedir}/%{name}
|
||||
Name: darkhttpd
|
||||
Version: 1.16
|
||||
Version: 1.17
|
||||
Release: 0
|
||||
Summary: When you need a web server in a hurry
|
||||
License: ISC
|
||||
@@ -29,9 +29,11 @@ Source1: %{name}.sysconfig
|
||||
Source2: %{name}.service
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: sysuser-tools
|
||||
Requires(post): %fillup_prereq
|
||||
Provides: http_daemon
|
||||
Provides: httpd
|
||||
%sysusers_requires
|
||||
|
||||
%description
|
||||
Features:
|
||||
@@ -70,20 +72,25 @@ Limitations:
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
tee > %{name}.sysusers <<EOF
|
||||
u %{name} - '%{name} service user' %{pkg_home}
|
||||
EOF
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
%make_build
|
||||
|
||||
%sysusers_generate_pre %{name}.sysusers %{name} system-user-%{name}.conf
|
||||
|
||||
%install
|
||||
install -D -m 0755 %{name} %{buildroot}/%{_bindir}/%{name}
|
||||
install -D -m 0644 %{SOURCE1} %{buildroot}%{_fillupdir}/sysconfig.%{name}
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/systemd/system/%{name}.service
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
|
||||
install -D -m 0644 %{name}.sysusers %{buildroot}%{_sysusersdir}/system-user-%{name}.conf
|
||||
mkdir -p %{buildroot}%{_sbindir}
|
||||
ln -s -f %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
||||
|
||||
%pre
|
||||
%{_sbindir}/groupadd -r %{name} >/dev/null 2>&1 ||:
|
||||
%{_sbindir}/useradd -g %{name} -s %{_sbindir}/nologin -r -c "user for %{name}" -d %{pkg_home} %{name} >/dev/null 2>&1 ||:
|
||||
%pre -f %{name}.pre
|
||||
%service_add_pre %{name}.service
|
||||
|
||||
%post
|
||||
@@ -100,7 +107,8 @@ ln -s -f %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
||||
%doc README.md
|
||||
%license COPYING
|
||||
%{_fillupdir}/sysconfig.%{name}
|
||||
%{_prefix}/lib/systemd/system/%{name}.service
|
||||
%{_sysusersdir}/system-user-%{name}.conf
|
||||
%{_unitdir}/%{name}.service
|
||||
%{_bindir}/%{name}
|
||||
%{_sbindir}/rcdarkhttpd
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ab97ea3404654af765f78282aa09cfe4226cb007d2fcc59fe1a475ba0fef1981
|
||||
size 40912
|
||||
3
v1.17.tar.gz
Normal file
3
v1.17.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4fee9927e2d8bb0a302f0dd62f9ff1e075748fa9f5162c9481a7a58b41462b56
|
||||
size 42322
|
||||
Reference in New Issue
Block a user