recipe 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Build recipe for iana-etc.
  2. #
  3. # Copyright (c) 2017 Matias Fonzo, <selk@dragora.org>.
  4. #
  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
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  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.
  16. program=iana-etc
  17. version=2.30
  18. arch=noarch
  19. release=1
  20. # Set 'outdir' for a nice and well-organized output directory
  21. outdir="${outdir}/${arch}/data"
  22. tarname=${program}-${version}.tar.bz2
  23. # Remote source(s)
  24. fetch=http://sethwklein.net/$tarname
  25. description="
  26. Provides /etc/services and /etc/protocols files.
  27. The iana-etc package provides the Unix/Linux /etc/services and
  28. /etc/protocols files. Using data from the Internet Assigned
  29. Numbers Authority <http://www.iana.org>.
  30. "
  31. homepage=http://www.iana.org/protocols
  32. license=OSLv3.0
  33. # Source documentation
  34. docs="COPYING CREDITS NEWS README VERSION"
  35. docsdir="${docdir}/${program}-${version}"
  36. build()
  37. {
  38. set -e
  39. unpack "${tardir}/$tarname"
  40. cd "$srcdir"
  41. # Set sane permissions
  42. chmod -R u+w,go-w,a+rX-s .
  43. make all && make DESTDIR="$destdir" install
  44. # To handle config file(s)
  45. touch "${destdir}/etc/.graft-config"
  46. # Copy documentation
  47. mkdir -p "${destdir}${docsdir}"
  48. for file in $docs
  49. do
  50. cp -p $file "${destdir}${docsdir}"
  51. done
  52. }