oprofile: create required user/dir at runtime.

This commit is contained in:
Juan RP 2011-12-16 16:27:51 +01:00
parent 77c340b045
commit 391028bdc9
2 changed files with 6 additions and 1 deletions

View file

@ -1,11 +1,12 @@
# Template file for 'oprofile-qt4-gui'. # Template file for 'oprofile-qt4-gui'.
# #
revision=1
short_desc="Qt GUI for oprofile" short_desc="Qt GUI for oprofile"
long_desc="${long_desc} long_desc="${long_desc}
This package contains oprof_start, a Qt4 GUI for oprofile." This package contains oprof_start, a Qt4 GUI for oprofile."
Add_dependency run oprofile Add_dependency run oprofile ">=${version}"
do_install() do_install()
{ {

View file

@ -1,6 +1,7 @@
# Template file for 'oprofile' # Template file for 'oprofile'
pkgname=oprofile pkgname=oprofile
version=0.9.7 version=0.9.7
revision=1
homepage="http://oprofile.sourceforge.net" homepage="http://oprofile.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz" distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
build_style=gnu-configure build_style=gnu-configure
@ -20,6 +21,9 @@ long_desc="
applications." applications."
subpackages="$pkgname-qt4-gui" subpackages="$pkgname-qt4-gui"
system_accounts="oprofile"
oprofile_homedir="/var/lib/oprofile"
make_dirs="/var/lib/oprofile 0750 oprofile oprofile"
Add_dependency build qt-devel Add_dependency build qt-devel
Add_dependency build zlib-devel Add_dependency build zlib-devel