]> git.pld-linux.org Git - packages/binfmt-detector.git/commitdiff
- new auto/th/binfmt-detector-0_1-1
authorwolf <wolf@pld-linux.org>
Mon, 1 May 2006 15:02:42 +0000 (15:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    binfmt-detector.spec -> 1.1

binfmt-detector.spec [new file with mode: 0644]

diff --git a/binfmt-detector.spec b/binfmt-detector.spec
new file mode 100644 (file)
index 0000000..27a4582
--- /dev/null
@@ -0,0 +1,71 @@
+Summary:       Microsoft PE executable type detector
+Summary(pl):   Detector typu plików wykonywalnych PE Microsoftu
+Name:          binfmt-detector
+Version:       0.1
+Release:       1
+License:       GPL
+Group:         Base
+Source0:       http://team.pld-linux.org/~wolf/%{name}.tar.gz
+# Source0-md5: 11623bddbeb536e88c47c8a1aedc9189
+Source1:       %{name}.init
+Conflicts:     wine <= 1:0.9.12-1
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This utility determines the Microsoft PE executable file's type
+(Native, .NET CLR) and runs it using the appropriate runtime (Wine,
+Mono).
+
+It is inteded to be used in a Linux binfmt configuration, since binfmt
+itself is incapable of reliably distinguishing between various PE file
+types (since they have no different "magic string") and runtimes
+refuse to run files which they don't support (CLR runtimes refuse to
+run Native images and vice versa).
+
+%description -l pl
+To narzêdzie okre¶la typ pliku wykonywalnego PE Microsoftu (natywny,
+.NET CLR) i uruchamia odpowiednie ¶rodowisko wykonawcze (Wine, Mono).
+
+Jest u¿ywane w po³±czeniu z Linuksowym binfmt, poniewa¿ samo binfmt
+nie jest w stanie odró¿niæ ró¿nych typów plików PE (nie zawieraj± one
+ró¿nych "magicznych ci±gów"), a ¶rodowiska uruchomieniowe nie
+pozwalaj± uruchomiæ nieobs³ugiwanych przez siebie plików (CLR nie
+uruchamia natywnych obrazów i vice versa).
+
+%prep
+%setup -q -n %{name}
+
+%build
+%{__cc} %{rpmcflags} binfmt-detector-cli.c -o binfmt-detector-cli
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/rc.d/init.d}
+
+install binfmt-detector-cli $RPM_BUILD_ROOT%{_bindir}
+install binfmt-detector.sh $RPM_BUILD_ROOT%{_bindir}
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/binfmt-detector
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add binfmt-detector
+if [ ! -f /var/lock/subsys/binfmt-detector ]; then
+       echo "Run \"/etc/rc.d/init.d/binfmt-detector start\" to start binfmt-detector service." >&2
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/binfmt-detector ]; then
+               /etc/rc.d/init.d/binfmt-detector stop >&2
+       fi
+       /sbin/chkconfig --del binfmt-detector
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/*
+%attr(754,root,root) %{_sysconfdir}/rc.d/init.d/binfmt-detector
This page took 0.061557 seconds and 4 git commands to generate.