diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
commit | 1be510f9529cb082f802408b472a77d074b394c0 (patch) | |
tree | b175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/2012-November/020269.html | |
parent | fa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff) | |
download | archives-master.tar archives-master.tar.gz archives-master.tar.bz2 archives-master.tar.xz archives-master.zip |
Diffstat (limited to 'zarb-ml/mageia-dev/2012-November/020269.html')
-rw-r--r-- | zarb-ml/mageia-dev/2012-November/020269.html | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-November/020269.html b/zarb-ml/mageia-dev/2012-November/020269.html new file mode 100644 index 000000000..a74056726 --- /dev/null +++ b/zarb-ml/mageia-dev/2012-November/020269.html @@ -0,0 +1,138 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-dev] Adding tmpfiles.d support to packages + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Adding%20tmpfiles.d%20support%20to%20packages&In-Reply-To=%3C50B285B4.6030108%40colin.guthr.ie%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="020248.html"> + <LINK REL="Next" HREF="020270.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-dev] Adding tmpfiles.d support to packages</H1> + <B>Colin Guthrie</B> + <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Adding%20tmpfiles.d%20support%20to%20packages&In-Reply-To=%3C50B285B4.6030108%40colin.guthr.ie%3E" + TITLE="[Mageia-dev] Adding tmpfiles.d support to packages">mageia at colin.guthr.ie + </A><BR> + <I>Sun Nov 25 21:55:16 CET 2012</I> + <P><UL> + <LI>Previous message: <A HREF="020248.html">[Mageia-dev] Adding tmpfiles.d support to packages (was: Re: rpmlint) +</A></li> + <LI>Next message: <A HREF="020270.html">[Mageia-dev] Adding tmpfiles.d support to packages +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#20269">[ date ]</a> + <a href="thread.html#20269">[ thread ]</a> + <a href="subject.html#20269">[ subject ]</a> + <a href="author.html#20269">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>'Twas brillig, and Remco Rijnders at 25/11/12 12:44 did gyre and gimble: +><i> On Thu, Nov 22, 2012 at 10:20:21AM +0000, Colin wrote in +</I>><i> <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">50ADFC65.8080905 at colin.guthr.ie</A>>: +</I>>><i> I should write up a wiki page, but here is the details: +</I>><i> +</I>><i> <snip> +</I>><i> +</I>>><i> # create tmpfiles directory +</I>>><i> install -d -m0755 %{buildroot}%{_prefix}/lib/tmpfiles.d +</I>>><i> install -m0644 %{SOURCEN} +</I>>><i> %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf +</I>>><i> +</I>>><i> Make sure it's included in the %files section too: +</I>>><i> %{_prefix}/lib/tmpfiles.d/*.conf +</I>><i> +</I>><i> Hi Colin, +</I>><i> +</I>><i> Thanks for these instructions. I've updated fail2ban accordingly and am +</I>><i> now in the process of doing inn. +</I> +Awesome thanks :) + +><i> Running rpmlint on the spec file I did +</I>><i> find that it results in some warnings when following your instructions +</I>><i> to the letter: +</I>><i> +</I>><i> ./inn.spec:204: W: hardcoded-library-path in %{_prefix}/lib/tmpfiles.d +</I>><i> +</I>><i> ./inn.spec:205: W: hardcoded-library-path in +</I>><i> %{_prefix}/lib/tmpfiles.d/%{name}.conf +</I>><i> +</I>><i> ./inn.spec:333: W: hardcoded-library-path in +</I>><i> %{_prefix}/lib/tmpfiles.d/*.conf +</I> +Today I've spend some time on this and added a few helper macros. + + +You can now use: + +%{_tmpfilesdir} in place of %{_prefix}/lib/tmpfiles.d + +You can also use: + +%_tmpfilescreate %{name} + + rather than + +systemd-tmpfiles --create %{name}.conf + + +That'll likely help keep things simpler and avoid a warning or two :) + +Oh and you can also just do: + + install -D -p -m 0644 %{SOURCEN} %{buildroot}%{_tmpfilesdir}/%{name}.conf + +Rather than creating the folder separately (the -D argument does this +for you). -p isn't important but just preserves the timestamp of the +source file which is mainly cosmetic. + +Col + + + +-- + +Colin Guthrie +colin(at)mageia.org +<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A> + +Day Job: + Tribalogic Limited <A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A> +Open Source: + Mageia Contributor <A HREF="http://www.mageia.org/">http://www.mageia.org/</A> + PulseAudio Hacker <A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A> + Trac Hacker <A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A> +</PRE> + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="020248.html">[Mageia-dev] Adding tmpfiles.d support to packages (was: Re: rpmlint) +</A></li> + <LI>Next message: <A HREF="020270.html">[Mageia-dev] Adding tmpfiles.d support to packages +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#20269">[ date ]</a> + <a href="thread.html#20269">[ thread ]</a> + <a href="subject.html#20269">[ subject ]</a> + <a href="author.html#20269">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev +mailing list</a><br> +</body></html> |