OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 29-May-2003 21:45:51
Branch: HEAD Handle: 2003052920455100
Modified files:
openpkg-src/minicom minicom.spec
Log:
fix permissions on default config and provide non-modem default inits
Summary:
Revision Changes Path
1.38 +19 -5 openpkg-src/minicom/minicom.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/minicom/minicom.spec
============================================================================
$ cvs diff -u -r1.37 -r1.38 minicom.spec
--- openpkg-src/minicom/minicom.spec 29 May 2003 19:33:55 -0000 1.37
+++ openpkg-src/minicom/minicom.spec 29 May 2003 19:45:51 -0000 1.38
@@ -100,6 +100,9 @@
echo "pu bits 8"
echo "pu parity N"
echo "pu stopbits 1"
+ echo "pu minit ^M"
+ echo "pu mreset ^M"
+ echo "pu mhangup ^M"
) >minirc.dfl
%{l_shtool} install -c -m 644 \
minirc.dfl $RPM_BUILD_ROOT%{l_prefix}/etc/minicom/
@@ -108,16 +111,27 @@
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
# determine installation files
- attr="4755,uucp,%{l_mgrp}"
+ attr_cfg="644,uucp,%{l_mgrp}"
+ attr_dev="4755,uucp,%{l_mgrp}"
case "%{l_target}" in
- *-freebsd* ) attr="6755,uucp,dialer" ;;
- *-linux* ) attr="2755,%{l_musr},`ls -l /dev/ttyS0 | awk '{print $4;}'`" ;;
- *-solaris* ) attr="4755,uucp,%{l_mgrp}" ;;
+ *-freebsd* )
+ attr_cfg="644,uucp,%{l_mgrp}"
+ attr_dev="6755,uucp,dialer"
+ ;;
+ *-linux* )
+ attr_cfg="644,%{l_musr},%{l_mgrp}"
+ attr_dev="2755,%{l_musr},`ls -l /dev/ttyS0 | awk '{print $4;}'`"
+ ;;
+ *-solaris* )
+ attr_cfg="644,uucp,%{l_mgrp}"
+ attr_dev="4755,uucp,%{l_mgrp}"
+ ;;
esac
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
"%config %{l_prefix}/etc/minicom/*" \
- "%attr($attr) %{l_prefix}/bin/minicom"
+ "%config %attr($attr_cfg) %{l_prefix}/etc/minicom/minirc.dfl" \
+ "%attr($attr_dev) %{l_prefix}/bin/minicom"
%files -f files
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]