"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/rpm/n2n.spec.in" between
n2n-2.8.tar.gz and n2n-3.0.tar.gz

About: n2n is a layer-two peer-to-peer virtual private network (VPN) which allows bypassing intermediate firewalls.

n2n.spec.in  (n2n-2.8):n2n.spec.in  (n2n-3.0)
skipping to change at line 12 skipping to change at line 12
Name: n2n Name: n2n
Version: @N2N_VERSION_SHORT@ Version: @N2N_VERSION_SHORT@
Release: @GIT_COMMITS@ Release: @GIT_COMMITS@
License: GPL License: GPL
Group: Networking/Utilities Group: Networking/Utilities
URL: http://www.ntop.org/ URL: http://www.ntop.org/
Source: n2n-%{version}.tgz Source: n2n-%{version}.tgz
Packager: Luca Deri <deri@ntop.org> Packager: Luca Deri <deri@ntop.org>
# Temporary location where the RPM will be built # Temporary location where the RPM will be built
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
#Requires: ntopng Requires: libzstd
# Make sure .build-id is not part of the package
%define _build_id_links none
%description %description
n2n peer-to-peer VPN n2n peer-to-peer VPN
%prep %prep
%build %build
mkdir -p $RPM_BUILD_ROOT/usr/sbin $RPM_BUILD_ROOT/usr/share/man/man1 $RPM_BUILD_ ROOT/usr/share/man/man7 $RPM_BUILD_ROOT/usr/share/man/man8 mkdir -p $RPM_BUILD_ROOT/usr/sbin $RPM_BUILD_ROOT/usr/share/man/man1 $RPM_BUILD_ ROOT/usr/share/man/man7 $RPM_BUILD_ROOT/usr/share/man/man8
mkdir -p $RPM_BUILD_ROOT/etc/n2n mkdir -p $RPM_BUILD_ROOT/etc/n2n
skipping to change at line 83 skipping to change at line 86
echo 'Creating n2n group' echo 'Creating n2n group'
/usr/sbin/groupadd -r n2n /usr/sbin/groupadd -r n2n
fi fi
if ! /usr/bin/id -u n2n > /dev/null 2>&1; then if ! /usr/bin/id -u n2n > /dev/null 2>&1; then
echo 'Creating n2n user' echo 'Creating n2n user'
/usr/sbin/useradd -M -N -g n2n -r -s /bin/false n2n /usr/sbin/useradd -M -N -g n2n -r -s /bin/false n2n
fi fi
%post %post
if [ ! -f /.dockerenv ]; then if [ -f /bin/systemctl ]; then
/bin/systemctl daemon-reload if [ ! -f /.dockerenv ]; then
# NOTE: do not enable any services during first installation /bin/systemctl daemon-reload
# NOTE: do not enable any services during first installation
fi
fi fi
%preun %preun
if [ ! -f /.dockerenv ]; then if [ -f /bin/systemctl ]; then
# possibly remove the installed services if [ ! -f /.dockerenv ]; then
%systemd_preun supernode.service edge.service 'edge-ntopng@*.service' 'edge@ # possibly remove the installed services
*.service' %systemd_preun supernode.service edge.service 'edge-ntopng@*.service' 'edg
e@*.service'
fi
fi fi
%postun %postun
if [ ! -f /.dockerenv ]; then if [ -f /bin/systemctl ]; then
# possibly restart the running services if [ ! -f /.dockerenv ]; then
%systemd_postun_with_restart supernode.service edge.service 'edge-ntopng@*.s # possibly restart the running services
ervice' 'edge@*.service' %systemd_postun_with_restart supernode.service edge.service 'edge-ntopng@*
.service' 'edge@*.service'
fi
fi fi
 End of changes. 4 change blocks. 
12 lines changed or deleted 21 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)