mixmaster.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. ##
  2. ## mixmaster.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # FIXME: rse: reasonable default configuration missing
  26. # package information
  27. Name: mixmaster
  28. Summary: Anonymous Remailer
  29. URL: http://mixmaster.sourceforge.net/
  30. Vendor: Lance Cottrell & Ulf Möller
  31. Packager: The OpenPKG Project
  32. Distribution: OpenPKG
  33. Class: JUNK
  34. Group: Mail
  35. License: GPL
  36. Version: 3.0b2
  37. Release: 20040507
  38. # list of sources
  39. Source0: http://osdn.dl.sourceforge.net/mixmaster/mixmaster-%{version}.tar.gz
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130, make
  44. PreReq: OpenPKG, openpkg >= 20040130
  45. BuildPreReq: ncurses, zlib, pcre, openssl
  46. PreReq: ncurses, zlib, pcre, openssl
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. Mixmaster is an anonymous remailer. Remailers provide protection
  51. against traffic analysis and allow users to send email anonymously
  52. or pseudonymously. Mixmaster consists of both client and server
  53. installations.
  54. %track
  55. prog mixmaster = {
  56. version = %{version}
  57. url = http://prdownloads.sourceforge.net/mixmaster/
  58. regex = mixmaster-(__VER__)\.tar\.gz
  59. }
  60. %prep
  61. %setup -q
  62. %build
  63. cd Src
  64. cp Makefile.in Makefile
  65. %{l_shtool} subst \
  66. -e 's;\%INC;%{l_cppflags};' \
  67. -e 's;\%DEF;-DUSE_ZLIB -DUSE_PCRE -DUSE_NCURSES -DHAVE_NCURSES_H;' \
  68. -e 's;\%LDFLAGS;%{l_ldflags};' \
  69. -e 's;\%LIBS;-lpcre -lz -lcrypto -lssl -lncurses;' \
  70. -e 's;\%MIXDIR;-DSPOOL=\\"%{l_prefix}/var/mixmaster\\";' \
  71. -e 's;^\(CC =\).*;\1 %{l_cc};' \
  72. -e 's;^\(OPT =\).*;\1 %{l_cflags -O};' \
  73. Makefile
  74. %{l_make} %{l_mflags -O} mixmaster mpgp
  75. %install
  76. rm -rf $RPM_BUILD_ROOT
  77. %{l_shtool} mkdir -p -m 755 \
  78. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  79. $RPM_BUILD_ROOT%{l_prefix}/libexec/mixmaster \
  80. $RPM_BUILD_ROOT%{l_prefix}/var/mixmaster
  81. %{l_shtool} install -c -s -m 755 \
  82. Src/mixmaster Src/mpgp $RPM_BUILD_ROOT%{l_prefix}/libexec/mixmaster/
  83. %{l_shtool} install -c -m 644 \
  84. conf/* $RPM_BUILD_ROOT%{l_prefix}/libexec/mixmaster/
  85. %{l_shtool} install -c -m 644 \
  86. mixmaster.1 mpgp.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  87. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  88. %{l_files_std} \
  89. '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/mixmaster'
  90. %files -f files
  91. %clean
  92. rm -rf $RPM_BUILD_ROOT