Re: RPM packaging: systemd service files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 28 Jul 2013 18:13:24 -0400
Rahul Sundaram <metherid@xxxxxxxxx> wrote:

> Hi
> 
> 
> > OK I fixed it by adding this:
> >
> > mkdir -p %{buildroot}%{_unitdir}/
> >
> > before copying the service file.
> >
> > It's always the most obvious and daft things!
> >
> 
> Glad you found the solution.  You might want to use install instead
> of cp however and if you are interested in packaging this officially
> for Fedora, please post the full spec for review.  Thanks
> 
> Rahul

I've done as you suggested.  The full spec is attached to this email.
I'm going to use it in conjunction with this:

http://gaenserich.github.io/hostsblock/

I'll have a look at packaging that shortly.

Ananda
Name:       kwakd
Version:    0.3
Release:    1%{?dist}
Summary:    Minimal http server serving blank pages.
Group:      Applications/Multimedia
License:    GPLv2
URL:        http://code.google.com/p/kwakd/
Source0:    %{name}-%{version}.tgz
Patch0:     kwakd-systemd-service.diff

BuildRequires:  glibc-devel
BuildRequires:  systemd

%description
Kwakd is a very small foot print web server written in C (under 400 lines of code) that serves blank html pages for any request.


%prep
%setup -q
#patch systemd service file to point to /usr/bin and not /usr/local/bin
%patch0 -p0

%build
%configure 
make %{?_smp_mflags}


%install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_unitdir}/
install -p %{name}.service %{buildroot}%{_unitdir}/


%files 
%doc README NEWS ChangeLog COPYING AUTHORS TODO
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%{_unitdir}/%{name}.service


%changelog
* Sun Jul 28 2013 Ananda Samaddar <ananda@xxxxxxxxxxxxxx>
- Initial packaging release

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux