diff options
| author | Jiri Olsa <jolsa@shell.devel.redhat.com> | 2009-09-04 02:29:08 -0400 |
|---|---|---|
| committer | Jiri Olsa <jolsa@shell.devel.redhat.com> | 2009-09-04 02:29:08 -0400 |
| commit | 04f3fbbfdb3a5dd197dbc25ca18ad244f1fbf6a5 (patch) | |
| tree | 8e53039a4f5d1a4571000bc06214053261aebf8d /package | |
| download | latrace-04f3fbbfdb3a5dd197dbc25ca18ad244f1fbf6a5.tar.gz latrace-04f3fbbfdb3a5dd197dbc25ca18ad244f1fbf6a5.tar.xz latrace-04f3fbbfdb3a5dd197dbc25ca18ad244f1fbf6a5.zip | |
initial commit - 0.5.7
Diffstat (limited to 'package')
| -rw-r--r-- | package/debian/changelog | 5 | ||||
| -rw-r--r-- | package/debian/conffiles | 30 | ||||
| -rw-r--r-- | package/debian/control | 18 | ||||
| -rw-r--r-- | package/debian/copyright | 21 | ||||
| -rw-r--r-- | package/debian/rules | 47 | ||||
| -rw-r--r-- | package/rpm/latrace.spec | 52 |
6 files changed, 173 insertions, 0 deletions
diff --git a/package/debian/changelog b/package/debian/changelog new file mode 100644 index 0000000..2264d76 --- /dev/null +++ b/package/debian/changelog @@ -0,0 +1,5 @@ +latrace (0.5.3-1) unstable; urgency=low + + * Debian packaging created. + + -- Akos Pasztory <akos.pasztory@gmail.com> Tue, 24 Feb 2009 21:26:14 +0300 diff --git a/package/debian/conffiles b/package/debian/conffiles new file mode 100644 index 0000000..31e2607 --- /dev/null +++ b/package/debian/conffiles @@ -0,0 +1,30 @@ +/etc/latrace.conf +/etc/latrace.d/ctype.conf +/etc/latrace.d/dirent.conf +/etc/latrace.d/dlfcn.conf +/etc/latrace.d/fcntl.conf +/etc/latrace.d/getopt.conf +/etc/latrace.d/inet.conf +/etc/latrace.d/ioctl.conf +/etc/latrace.d/libintl.conf +/etc/latrace.d/libio.conf +/etc/latrace.d/locale.conf +/etc/latrace.d/misc.conf +/etc/latrace.d/ncurses.conf +/etc/latrace.d/netdb.conf +/etc/latrace.d/pthread.conf +/etc/latrace.d/pwd.conf +/etc/latrace.d/signal.conf +/etc/latrace.d/socket.conf +/etc/latrace.d/stat.conf +/etc/latrace.d/stdio.conf +/etc/latrace.d/stdlib.conf +/etc/latrace.d/string.conf +/etc/latrace.d/syslog.conf +/etc/latrace.d/term.conf +/etc/latrace.d/termios.conf +/etc/latrace.d/time.conf +/etc/latrace.d/typedefs.conf +/etc/latrace.d/unistd.conf +/etc/latrace.d/utmp.conf +/etc/latrace.d/wait.conf diff --git a/package/debian/control b/package/debian/control new file mode 100644 index 0000000..473c3b2 --- /dev/null +++ b/package/debian/control @@ -0,0 +1,18 @@ +Source: latrace +Section: utils +Priority: optional +Maintainer: Akos PASZTORY <akos.pasztory@gmail.com> +Standards-Version: 3.8.0 +Build-Depends: flex, bison, autoconf + +Package: latrace +Architecture: i386 amd64 armel +Depends: libc6 (>= 2.5) [armel], libc6 (>= 2.7-1) [i386 amd64] +Description: traces library calls in dynamically linked programs + latrace (similar to ltrace) displays dynamic library calls of a program + using the LD_AUDIT feature of newer glibc versions. It is also capable to + measure and display various statistics of dynamic calls. If a config file + is provided, latrace will display function arguments with detailed output + for structures. + . + See also http://latrace.sourceforge.net/ diff --git a/package/debian/copyright b/package/debian/copyright new file mode 100644 index 0000000..405f8e8 --- /dev/null +++ b/package/debian/copyright @@ -0,0 +1,21 @@ +This package is derived from sources obtained at: + http://latrace.sourceforge.net +Debian packaging by Akos PASZTORY <akos.pasztory@gmail.com>. + +Copyright (c) 2008, 2009 Jiri Olsa <olsajiri@gmail.com> + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +Under Debian systems /usr/share/common-licenses/GPL-3 +contains the full text of the license. diff --git a/package/debian/rules b/package/debian/rules new file mode 100644 index 0000000..0295e77 --- /dev/null +++ b/package/debian/rules @@ -0,0 +1,47 @@ +#!/usr/bin/make -f + +.PHONY: build clean binary-arch binary-indep binary default + +pkg := latrace +pkgdir := debian/$(pkg) +docdir := $(pkgdir)/usr/share/doc/$(pkg) +checkdir = @test -e debian/control || ! echo wrong directory +checkuid = @test "`id -u`" -eq 0 || ! echo need root permissions + +default: +build: debian/stamp-build +debian/stamp-build: + $(checkdir) + autoconf + ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib/latrace + make + touch $@ +clean: + $(checkdir) + $(checkuid) + rm -f debian/stamp-* + test ! -f src/autoconf.make || make mrproper + rm -rf debian/latrace + rm -f debian/files debian/substvars +binary-indep: +binary-arch: debian/stamp-build + $(checkdir) + $(checkuid) + install -d $(pkgdir)/DEBIAN $(docdir) + make install ROOTDIR="$(CURDIR)/$(pkgdir)" + cd $(pkgdir) && strip --strip-unneeded -R .note -R .comment \ + usr/bin/latrace usr/lib/latrace/libltaudit.so + cp -p ChangeLog $(docdir)/changelog + cp -p README ReleaseNotes TODO debian/copyright $(docdir) + cp -p debian/changelog $(docdir)/changelog.Debian + cp -p debian/conffiles $(pkgdir)/DEBIAN + gzip -9f $(pkgdir)/usr/share/man/man1/latrace.1 + gzip -9f $(docdir)/changelog $(docdir)/changelog.Debian + dpkg-shlibdeps $(pkgdir)/usr/bin/latrace + dpkg-gencontrol -P$(pkgdir) + cd $(pkgdir) && find * -path DEBIAN -prune -o -type f -print0 | \ + xargs -r0 md5sum > DEBIAN/md5sums + chown -R root:root $(pkgdir) + chmod -R u+w,go=rX $(pkgdir) + dpkg-deb -b $(pkgdir) .. +binary: binary-arch binary-indep diff --git a/package/rpm/latrace.spec b/package/rpm/latrace.spec new file mode 100644 index 0000000..2234f1b --- /dev/null +++ b/package/rpm/latrace.spec @@ -0,0 +1,52 @@ +Name: latrace +Version: 0.5.6 +Release: 1%{?dist} +Summary: LD_AUDIT feature frontend for glibc 2.4+ +Group: Development/Debuggers +License: GPLv3+ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +URL: http://latrace.sourceforge.net/ +Source: http://downloads.sourceforge.net/latrace/%{name}-%{version}.tar.bz2 +ExclusiveArch: %{ix86} x86_64 arm +BuildRequires: autoconf bison asciidoc xmlto + +%description +allows you to trace library calls and get their statistics in a +manner similar to the strace utility (syscall tracing) + +%prep +%setup -q + +%build +autoconf +%configure +make V=1 + +%install +rm -rf %{buildroot} +make install ROOTDIR=%{buildroot} V=1 + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc README ReleaseNotes TODO COPYING +%config(noreplace) %{_sysconfdir}/* +%{_libdir}/libltaudit.so.%{version} +%{_bindir}/latrace +%{_mandir}/man1/* + +%changelog +* Sun Jul 05 2009 Jiri Olsa <olsajiri@gmail.com> 0.5.6-1 +- updates based on the Fedora review comments + +* Thu Jul 02 2009 Jiri Olsa <olsajiri@gmail.com> 0.5.5-2 +- minor updates based on the Fedora review comments + +* Sat Jun 13 2009 Jiri Olsa <olsajiri@gmail.com> 0.5.5-1 +- initial spec file |
