Programming :: Rpm Spec File To Overwrite Service Script?

May 5, 2010

I have written a spec file for packaging my application in an rpm, but it reports a conflict when I am trying to update my service script in /etc/init.d/. This is a file that I do need to update/replace so how might I force the rpm to do that?

Code:

Summary: A program that increases WAN performance.
Name: packetsqueezer
Version: 0.3.05
Release: 1

[code]...

View 3 Replies


ADVERTISEMENT

Software :: How To Get Spec File From Existing Rpm?

Jan 10, 2009

I want to change some thing inside the post install script of an existing rpm.there is any way to create a nearest spec file of this rpm, in order to change a bit the post install script inside this spec and then create again the rpm with the fixed spec file? no body wrote any program that can create spec file(99% identical from the orig spec file?)?

View 4 Replies View Related

Programming :: Spec Files To Create RPM Packages For The Target System?

Jun 10, 2010

I'm trying to debug a program that I crosscompiled on a arm9. The crosscompiler uses . spec files to create RPM packages for the target system. The program compiles and runs correctly except when i run the program with gdb and then type list I get this message: Code: 1 main.c: No such file or directory. in main.c I made sure I compiled the program with CFLAGS=-g by putting this in the .spec file. when the application crosscompiles (I believe) it shows it compiled succesfully with the -g flags: Code: checking whether gcc accepts -g... (cached) yes

[Code]...

View 2 Replies View Related

Fedora :: Building A Rpm From A Tarball Not Containing The Spec File?

Jun 29, 2011

I found that "autospec" can construct a spec file. But autospec-0.8-1 is not compatible with python 2.7.1 Moreover autospec seems to be considered as deprecated. Is there a more recent version or some other equivalent utility?

View 3 Replies View Related

General :: RPM + Writing Script In The Spec File?

Feb 23, 2011

is it possible to write ksh script in the spec file? the target is after I perform rpm -i my_rpm.rpm according to the spec file , ksh script will do some installation & configuration for example run other script and edit some files

View 5 Replies View Related

Software :: Rpmbuild A Spec File When A BuildRequires Is Not Installed

Dec 8, 2008

I'm trying to create a set of rpm files to install the requirements for a program.I found a great utility named cpanspec that will create a spec file for perl modules and have started building rpm files. I was able to create an rpm file for Business::CreditCard as a regular user. Now I'm trying to build another module that requires B::CC, and rpmbuild -ba fails saying that I am missing B::CC. I don't want to install it just to create another rpm file.Is there a way to make rpmbuild "think" that B::CC is installed in the build environment without installing it on the system?

View 1 Replies View Related

Software :: How To Force Required 32bit Library On Spec File?

Apr 8, 2010

is there a way to specify that I need a 32bit version of a certain library on the "Requires" line of a SPEC file?Since my software contain (a lot of) binaries from other sources (not always RPM compatible) I had to do "AutoReqProv: No" so I can do it manually.Is there a way to explicid say that I need the 32bit version of some library?

View 1 Replies View Related

General :: Why Use Patch Files Based Upon Different When Can Directly Overwrite The Old File With The New File

May 29, 2010

i want to know why do we need to patch files based upon diff when we can directly overwrite the old file with the new file.

View 4 Replies View Related

Software :: Overwrite The Contents Of A File Without Changing The File Size?

Jul 12, 2010

We have some large files with sampling data in it. Don't want to delete these files. But want to quickly overwrite the file with 0s and/or 1s and preserve the original file size.

View 3 Replies View Related

General :: Rpm Spec File Conflicts Syntax Query - Not Keeping The Package Name

Mar 9, 2011

I have inherited our Linux packaging and as the number of versions increase, the number of conflicts is starting to get a bit unmanageable. I believe the easiest way would have been to keep the package names the same and just change the release in the spec file but unfortunately I am past that as a lot of these packages are rolled out to our estate. (I am told there were reasons for not keeping the package name the same and incrementing the version/release)

Is it possible to wildcard conflicts so I don't need to keep adding as new versions are created. For example, instead of using all the conflicts below, have something along the lines of AAtest45* <= 1.4 & BBtest45* <= 1.4 Meaning that all I would need to do was change this to 1.5 at the next release (the packages below version matched the release in the spec file)

[Code]....

View 2 Replies View Related

General :: Overwrite The Header Of A File Without Copying The Whole File?

Mar 1, 2011

Asuming I have two files, one large file and one small file, I want to write the smaller file to the large file without overwriting the remaining part of the larger file.

Both are binary files, and the large file can become very large, so I want to avoid copying the whole file, as that will take some time. Is there any standard Linux console utility to do this, or do I need to write it myself?

View 2 Replies View Related

Programming :: Disk Overwrite Program In C

Feb 17, 2010

I have to shred a disk from a custom program. Now I open the disk (/dev/sdaX) from a C program and write /dev/urandom to it. But, most of the time the disk is being used by other programs. At least a 5-10 programs will have files opened on that disk. I cannot kill all the programs as some of them are critical. (Now, don't ask me why I am trying to overwrite a disk which is live and being used by some critical programs. Some moron designed it that way and gave me to implement). Sooner or later, write to /dev/sdaX will fail.

Is there any way (may be some flags that I can pass to open while opening a disk for writing) that I can use so that my overwrite continues even if other program is using the disk? (I am not bothered about what will the other program read and process from the disk when this happens)

View 6 Replies View Related

General :: Why 'cannot Overwrite Existing File'

Mar 8, 2011

I try to write to a file "date > file" but Linux says 'cannot overwrite existing file'. I tried chmod 755 but still cannot write to the file. What should I do?

View 2 Replies View Related

General :: Command To Overwrite File With Sed Output?

Jan 5, 2010

For example I want a file to be processed by sed, and then overwrite the file with sed's output. I would try this:
Code:
sed '<regex goes here>' myfile > myfile
But it doesn't work as expected, instead it empties the file (I am thinking that as the first byte comes out of sed, it overwrites the whole file and sed has nothing more to do). How can I make this work?

View 14 Replies View Related

Software :: Overwrite Same Input File Image

Mar 18, 2011

Code:
dd bs=8192 if=Image of=/dev/PS0
In the above command, I cant able to understand the option "of=/dev/PS0"

Whether it means,
1) to write the input file "Image" in to "/dev/PS0" of the Floppy device
or
2) to overwrite the same input file "Image" in a file format ("/dev/PS0") of Floppy.

View 2 Replies View Related

Ubuntu Multimedia :: Ffmpeg Crash When Trying To Overwrite File?

Jul 28, 2010

I'm getting some funny behavior from ffmpeg when I'm trying to increase the volume of an mp3 file and have it overwrite itself. For example, if I execute the following command:

Code:
ffmpeg -i name.mp3 -vol 1024 -y name.mp3

it will code the first 5 seconds or so and then quit with:

Code:
[mp3 @ 0x2db16d0]incomplete frame
Error while decoding stream #0.0
[Code]....

View 1 Replies View Related

Ubuntu :: No Dual Boot - Windows Overwrite Grub File

Jan 5, 2011

I've recently left Windows behind for good and have come to Linux (Ubuntu.) However, I've run into problems after trying to dual boot windows 7 and ubuntu. When I restarted my computer, I got a black screen with white text reading "Minimal BASH-like line editing is supported". I have the Ubuntu live cd and was able to try Ubuntu without having to install it, but after I put in a flash drive with Windows 7 on it, the Ubuntu CD has stopped working entirely.

The weird thing is, the computer that I installed Ubuntu on, already had Ubuntu and Windows 7 on it. And every OS was booting successfully. The reason I deleted the Ubuntu that was already on the computer, is because there were many different versions. I wanted to do a clean sweep and only have Ubuntu and Windows 7 installed on the computer. I know that if you try to dual boot Windows 7 and Ubuntu, Windows will overwrite the GRUB file, making it unable to dual boot.

View 5 Replies View Related

Ubuntu :: Secure Copy: Overwrite Remote File With Sudo?

Mar 18, 2011

My situation:

Host A: need sudo to access the file
Host B: need sudo to access/overwrite the target file

How to copy a file from host A to host B without creating temporaries? Is it possible?

View 1 Replies View Related

Fedora :: Find Kernel.spec File For Compile Vanilla Kernel?

Nov 29, 2010

i want to compile the vanilla kernel 2.6.37-rc3, but i want to obtain a .rpm file. I found this guide long time ago (i used it many times) but it use src.rpm package and the contained kernel.spec file have many lines for adding patches. Someone know where can i download a kernel.spec for vanilla kernel or a guide to obtain an rpm file

View 4 Replies View Related

Red Hat :: Distinguish Between Gdbm 64b To Gdbm 32b In Rpm Spec File?

Oct 13, 2010

In my rpm I need gdbm 32b.when installing on RHEL x86_64 the Reqires section passes with no error since gdbm 64b was found.I need to distinguish between gdbm 64b to gdbm 32b in my spec file.In my spec I use the following :Requires: gdbm = 1.8.0

View 1 Replies View Related

Applications :: Overwrite File Contents And Clear Firefox Cache + All The Normal Functions Of A System Cleaner

Oct 22, 2010

since arch has started using python3, bleachbit is broken, so i am looking for a system cleaner to replace it. i need something that will overwrite file contents and clear firefox cache + the all the normal functions of a system cleaner.

View 8 Replies View Related

Ubuntu Servers :: Compile Samba 4.0.0 Alpha 7 In Ubuntu Using The Spec File Provided In The Samba Packages?

Nov 26, 2010

this is my output when I try to compile samba 4.0.0 alpha 7 in Ubuntu using the spec file provided in the samba packages:

bin/mergedobj/samba-util.o: In function `file_lines_parse':
(.text+0x595c): undefined reference to `_talloc_steal'
bin/mergedobj/samba-util.o: In function `data_blob_talloc_named':[code]....

View 1 Replies View Related

Ubuntu :: Password Overwrite - Root Access Is Destroyed - Restore The Password File?

Mar 3, 2010

I m Trying to get vsftpd usergroups to work i accidentally moved a file called passwd from /etc/vsftpd/ to /etc/, resulting in my root access is destroyed! how to restore the passwd file so i can keep working, or do i have to re-install the entire box?

View 4 Replies View Related

Networking :: Failed To Overwrite Statefile "Read Only File-system"?

Dec 16, 2009

I created a Symbolic link for ifstate from /etc/network/run to /var/run (/var/run is mounted as tmpfs) and I can write to and from the file perfectly fine, but when trying to start the network I get "Failed to overwrite statefile Read only file-system". I double checked permissions to see if that was the problem, but it does not appear to be

View 5 Replies View Related

Programming :: Bash - Creating Service For A Script?

May 10, 2010

I wrote a script for capturing port 5060 with tshark.Well, it's only a line, but I needed to send a positional var, and I couldn't do it with an alias. Now I need that script to run as a service, so I can start/stop. (Using CentOS)

Code:

#!/bin/bash
#
# capture service

[code]....

One more thing, my goal is to start/stop the service with

Code:

service myservice start|stop

Is that possible? I read that I must use chkconfig.

View 1 Replies View Related

Programming :: Remotely Control A Windows Service?

Nov 20, 2010

I have a java application running under Linux (Suse). My application communicates with a windows service via TCP/IP. I had multiple cases where the windows service crashed and I'm wondering if in such case there is any Linux or java tool I could use to remotely restart this Windows service.

View 2 Replies View Related

Programming :: How To Start/stop Squid Service Using PHP

Oct 21, 2009

Im using PHP and Sun Solaris to do something for Squid Proxy Server. im using......

- LAMP / SAMP
- Linux / Solaris 10
- Squid Server
- PHP

actually i need to know that someone knows about how to start/stop Squid Service using PHP code.

View 2 Replies View Related

Programming :: Writing A Service In C++ And Starting At Boot?

Nov 10, 2010

I created a small C++ program which starts a server in a separate thread and waits the user to press q using the standard input/output. Something like:

Code:
printf(...);
server->Start();

[code]....

View 8 Replies View Related

Red Hat / Fedora :: RPM SPEC Files ?

Jul 21, 2010

I'm trying to install radare and under the binary section for fedora it has a .spec file. It this a sort of script for the rpm command? I found a lot of info on how to make spec files but nothing on what they are or how to use them. So I have a radare.spec file, how can I use it to install the program?

View 1 Replies View Related

Programming :: Write Shell Script So That It Can Run As Service / Daemon

Mar 8, 2010

Am not sure of the best way to go about writing a script. All I need at the moment is to start a java http server program at startup.How should I write languagetool.sh so as to be able to stop the script execution?

View 10 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved