website: manual: refresh qi.html to be reflected on the website
[dragora.git] / recipes / data / iana-etc / recipe
blob2bc31a70d145442c62cc97bd3b870c6ada7c0b0e
1 # Build recipe for iana-etc.
3 # Copyright (c) 2017 Matias Fonzo, <selk@dragora.org>.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 #    http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 program=iana-etc
18 version=2.30
19 arch=noarch
20 release=1
22 # Set 'outdir' for a nice and well-organized output directory
23 outdir="${outdir}/${arch}/data"
25 tarname=${program}-${version}.tar.bz2
27 # Remote source(s)
28 fetch=http://sethwklein.net/$tarname
30 description="
31 Provides /etc/services and /etc/protocols files.
33 The iana-etc package provides the Unix/Linux /etc/services and
34 /etc/protocols files.  Using data from the Internet Assigned
35 Numbers Authority <http://www.iana.org>.
38 homepage=http://www.iana.org/protocols
39 license=OSLv3.0
41 # Source documentation
42 docs="COPYING CREDITS NEWS README VERSION"
43 docsdir="${docdir}/${program}-${version}"
45 build()
47     set -e
49     unpack "${tardir}/$tarname"
51     cd "$srcdir"
53     # Set sane permissions
54     chmod -R u+w,go-w,a+rX-s .
56     make all && make DESTDIR="$destdir" install
58     # To handle config file(s)
59     touch "${destdir}/etc/.graft-config"
61     # Copy documentation
62     mkdir -p "${destdir}${docsdir}"
64     for file in $docs
65     do
66         cp -p $file "${destdir}${docsdir}"
67     done