Browse files

Create a package for davepacheco's mod_usdt

  • Loading branch information...
1 parent 63b85b8 commit 61c686863bcd59f788dab4f96e5afa6057f86c31 @mamash mamash committed May 7, 2012
Showing with 62 additions and 0 deletions.
  1. +4 −0 ap2-usdt/DESCR
  2. +13 −0 ap2-usdt/MESSAGE
  3. +31 −0 ap2-usdt/Makefile
  4. +5 −0 ap2-usdt/PLIST
  5. +4 −0 ap2-usdt/TODO
  6. +5 −0 ap2-usdt/distinfo
View
4 ap2-usdt/DESCR
@@ -0,0 +1,4 @@
+mod_usdt is an Apache2 module that implements an "httpd" DTrace provider,
+allowing you to trace Apache requests using DTrace. DTrace is
+a comprehensive dynamic tracing framework available on Illumos-based,
+BSD, and MacOS systems.
View
13 ap2-usdt/MESSAGE
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD$
+
+To enable this module, add something like the following line to
+your Apache server configuration file:
+
+ LoadModule usdt_module lib/httpd/mod_usdt.so
+
+When invoking command line dtrace, make sure to add -L argument:
+
+ dtrace -L /opt/local/lib/dtrace
+
+===========================================================================
View
31 ap2-usdt/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD$
+#
+
+DISTNAME= davepacheco-mod_usdt-82d6828
+PKGNAME= ${APACHE_PKG_PREFIX}-usdt-20120402
+CATEGORIES= sysutils
+MASTER_SITES= https://nodeload.github.com/davepacheco/mod_usdt/tarball/master?
+
+MAINTAINER= filip@joyent.com
+HOMEPAGE= https://github.com/davepacheco/mod_usdt
+COMMENT= DTrace provider for Apache
+LICENSE= mit
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+PKG_APACHE_ACCEPTED= apache2 apache22
+APACHE_MODULE= YES
+USE_TOOLS+= gmake
+
+INSTALLATION_DIRS+= lib/dtrace lib/httpd share/examples/${PKGBASE}
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/build/mod_usdt.so ${DESTDIR}${PREFIX}/lib/httpd
+ ${INSTALL_DATA} ${WRKSRC}/src/httpd.d ${DESTDIR}${PREFIX}/lib/dtrace
+ ${INSTALL_DATA} ${WRKSRC}/examples/http-requests-bylatency.d \
+ ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}
+ ${INSTALL_DATA} ${WRKSRC}/examples/http-requests.d \
+ ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}
+
+.include "../../mk/apache.mk"
+.include "../../mk/bsd.pkg.mk"
View
5 ap2-usdt/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+lib/dtrace/httpd.d
+lib/httpd/mod_usdt.so
+share/examples/ap22-usdt/http-requests-bylatency.d
+share/examples/ap22-usdt/http-requests.d
View
4 ap2-usdt/TODO
@@ -0,0 +1,4 @@
+This module is fully functional on 32-bit Apache. 64-bit support is
+forthcoming. It has only been tested on SmartOS, an Illumos-based
+(Solaris-based) system. It should be possible to modify this for
+MacOS and BSD; pull requests welcome.
View
5 ap2-usdt/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+SHA1 (davepacheco-mod_usdt-82d6828.tar.gz) = 93257648b2d831f7084087ae6f30254e82c085ad
+RMD160 (davepacheco-mod_usdt-82d6828.tar.gz) = a4016aa023716719fb1e8ea7f9d84e2da92e8f1c
+Size (davepacheco-mod_usdt-82d6828.tar.gz) = 15344 bytes

0 comments on commit 61c6868

Please sign in to comment.