List Info

Thread: openntpd: contributed RPM submission




openntpd: contributed RPM submission
user name
2006-04-02 14:15:36
Hello,

Here's my submission for a new package: openntpd, a secure
NTP daemon
implementation, ported from the OpenBSD project.

The URL to the SRPM is: 
    http://www.durval.com.br/RPMS/el4/open
ntpd/openntpd-3.7p1-1dm2_el4.src.rpm

I've attached the .spec file.

Best Regards,
-- 
   Durval Menezes (durval AT tmp DOT com DOT br, http://www.tmp.com.br/)
Summary: NTP Time Synchronization Client 
Name: openntpd
Version: 3.7p1
Release: 1dm2_el4
License: BSD
Group: Applications/System
Source: %-%.tar.gz
BuildRoot: %/%-root
BuildRequires: openssl-devel
Requires: openssl
Requires: /usr/sbin/useradd, /usr/sbin/usermod
/sbin/chkconfig

#Patch1: openntpd-3.6p1-linux-adjtimex3.patch

%description
NTP Time Synchronization Client - http://www.openntpd.org

%prep
%setup -q -n %-%
#%patch1 -p0

%build
./configure \
  --sbindir=% \
  --mandir=% \
  --sysconfdir=% \
  --with-privsep-user=ntp
%

%clean
% -rf $RPM_BUILD_ROOT

%install
% -rf $RPM_BUILD_ROOT
% install DESTDIR=$RPM_BUILD_ROOT
INSTALL="% -p"
% $RPM_BUILD_ROOT/%
% contrib/redhat/ntpd $RPM_BUILD_ROOT/%

%pre
if ! /usr/bin/id ntp &>/dev/null; then
  % /var/empty/ntpd
  % 0 /var/empty/ntpd
  % 0 /var/empty/ntpd
  % 0755 /var/empty/ntpd

  useradd -c "OpenNTPD Unprivileged User" -u 38
-r -d /var/empty/ntpd ntp &>/dev/null || \
		%logmsg "Unexpected error adding user
\"ntp\". Aborting installation."
fi
/usr/sbin/usermod -s /sbin/nologin ntp &>/dev/null ||
:



%post
/sbin/chkconfig --add ntpd

%preun
if [ $1 -eq 0 ]; then
  /sbin/service ntpd stop &>/dev/null || :
	/sbin/chkconfig --del ntpd
  /usr/sbin/userdel ntp
  exit 0
fi

%postun
/sbin/service ntp condrestart &>/dev/null || :


%files
%defattr(-,root,root,-)
%doc ChangeLog CREDITS README LICENCE
%config(noreplace) %attr(644, root, root)
%/ntpd.conf
%config %attr(755, root, root) %/ntpd
%attr(755, root, root) %/*
%attr(644, root, root) %/man*/*

%changelog
* Mon Mar 27 2006 Durval Menezes <durval AT tmp DOT com
DOT br> [3.7p1-1dm2_el4]
- Initial package, based on the openntpd.spec included in
the original tarfile.
_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )