Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhonghuaren
fakeroot-ng
fakeroot-ng.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fakeroot-ng.spec of Package fakeroot-ng
Name: fakeroot-ng Version: 0.18 Release: 0 Summary: Fooling a program into thinking it is running as root License: GPL-2.0+ Group: Development/Other URL: http://sourceforge.net/projects/fakerootng Source: http://downloads.sourceforge.net/fakerootng/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ %description Fakeroot-ng uses the debug interface (PTRACE) to fool programs into thinking they are running with root permission. %prep %setup -q #sed -i '1i #include <unistd.h>' parent.cpp #sed -i -e 's|"PID_F|" PID_F|g' -e 's|PID_F"|PID_F "|g' parent.cpp process.cpp file.cpp ptrace.cpp #sed -i -e 's|"DEV_F|" DEV_F|g' -e 's|DEV_F"|DEV_F "|g' -e 's|"INODE_F|" INODE_F|g' -e 's|INODE_F"|INODE_F "|g' file.cpp file_lie.cpp #sed -i -e 's|"UID_F|" UID_F|g' -e 's|UID_F"|UID_F "|g' -e 's|"GID_F|" GID_F|g' -e 's|GID_F"|GID_F "|g' -e 's|sysconf(_SC_PAGESIZE)|4096|' file.cpp sed -i '/linux\/ptrace\.h/d' arch/linux/os.c sed -i '4i #include <sys/types.h>' arch/linux/i386/platform_specific.h %build ./configure --prefix=/usr make %{?_smp_mflags} CPPFLAGS="%{optflags}" %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %files %doc AUTHORS %{_bindir}/* %{_mandir}/man1/* %clean rm -rf $RPM_BUILD_ROOT %changelog * Fri Jan 03 2014 Huaren Zhong <huaren.zhong@gmail.com> 0.18 - Rebuild for Fedora
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor