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.
22 # Define hash tag to categorize the package name output
25 tarname=${program}-${version}.tar.bz2
28 fetch=http://sethwklein.net/$tarname
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
41 # Source documentation
42 docs="COPYING CREDITS NEWS README VERSION"
43 docsdir="${docdir}/${program}-${version}"
49 unpack "${tardir}/$tarname"
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"
62 mkdir -p "${destdir}${docsdir}"
66 cp -p $file "${destdir}${docsdir}"