Sponsored Content
Top Forums UNIX for Advanced & Expert Users Enable 'make uninstall' hook? Post 302950868 by sea on Wednesday 29th of July 2015 02:12:32 PM
Old 07-29-2015
Oh doh, crappy copy-paste-'translations'....

Thank you Don
/solved
 

8 More Discussions You Might Find Interesting

1. Linux

would like to hook up linux system to another computer!

I have desktop with both windows and fedora core 2 installed on it which I have also hooked up to my psion 5mx palm device that is stored in the windows drive... and i just access the files by mounting them onto my linux drive.. now I have a laptop too .. with the same directories as the linux... (7 Replies)
Discussion started by: moxxx68
7 Replies

2. Solaris

File System Hook

Background: DEDS is used to exchange files between Our Client and outside world. It is running on Sun v480 server OS 5.8. The files can come into or go out from various directories configured for various interfaces and come from both Our Client side as well as outside world. Requirement: ... (0 Replies)
Discussion started by: kdhana
0 Replies

3. Solaris

Perl - How to uninstall? Will pkgrm uninstall all versions?

Hello, I'm working on a Solaris 9/Sparc machine and it has the Solaris 10 version of Perl (5.8.8) installed on it, which always requires all kinds of library files that Solaris 9 doesn't come with. I think the best way to do is to uninstall this wrong version and install the correct Solaris 9... (1 Reply)
Discussion started by: alanlh
1 Replies

4. Linux

how to enable #ifdef macro in the command line of make?

Linux, C++, make, macro In source code, we used some #ifdef macros. How can I enable #ifdef macro in the command line of "make" (NOTE: I do NOT want to change source code or makefile to define that macro from time to time). e.g. test.cpp: ... #ifdef TEST1 // code segment for test1 ...... (3 Replies)
Discussion started by: princelinux
3 Replies

5. UNIX for Dummies Questions & Answers

The Gary Hook tutorial

Hi All, There has been talk about UNIX self-paced online tutorials written by Gary Hook, and that they are very good, specifically AIX. I am looking for the latest version of AIX, administration, tuning, networking, etc. (Like version 5 or 5L.) Basics to mid-range. I have searched all... (0 Replies)
Discussion started by: jeffpas
0 Replies

6. UNIX for Dummies Questions & Answers

The Gary Hook tutorial

Hi All, One more time (!). I have started a contract job and am looking for any online tutorials for AIX, 5 or 5L, just an overview to brush up on system administration, security, networking, etc. with the newer and Linux linked versions. Several people on the web have indicated in other... (1 Reply)
Discussion started by: jeffpas
1 Replies

7. Programming

How to hook file changes?

hello, Im trying to create some kind of a file change hook on unix machines (should be generic if possible). Do any of you know how can i write some code that will trigger whenever a file is being modified and then will approve the modifications, or throw an exception if the new content of... (2 Replies)
Discussion started by: ErezB
2 Replies

8. Shell Programming and Scripting

Get Home Directory for Users in Login Hook Script

I'm writing a script to use as a LoginHook for my Mac users. As part of this script, I need to write to a location in their home directory, but I can't seem to access the path - at this point in the login process, $HOME is empty and ~ gives the path to root's home. Unfortunately, I can't just do... (1 Reply)
Discussion started by: blondepianist
1 Replies
CPANPLUS::Dist::Base(3pm)				 Perl Programmers Reference Guide				 CPANPLUS::Dist::Base(3pm)

NAME
CPANPLUS::Dist::Base - Base class for custom distribution classes SYNOPSIS
package CPANPLUS::Dist::MY_IMPLEMENTATION use base 'CPANPLUS::Dist::Base'; sub prepare { my $dist = shift; ### do the 'standard' things $dist->SUPER::prepare( @_ ) or return; ### do MY_IMPLEMENTATION specific things ... ### don't forget to set the status! return $dist->status->prepared( $SUCCESS ? 1 : 0 ); } DESCRIPTION
CPANPLUS::Dist::Base functions as a base class for all custom distribution implementations. It does all the mundane work CPANPLUS would have done without a custom distribution, so you can override just the parts you need to make your own implementation work. FLOW
Below is a brief outline when and in which order methods in this class are called: $Class->format_available; # can we use this class on this system? $dist->init; # set up custom accessors, etc $dist->prepare; # find/write meta information $dist->create; # write the distribution file $dist->install; # install the distribution file $dist->uninstall; # remove the distribution (OPTIONAL) METHODS
@subs = $Class->methods Returns a list of methods that this class implements that you can override. $bool = $Class->format_available This method is called when someone requests a module to be installed via the superclass. This gives you the opportunity to check if all the needed requirements to build and install this distribution have been met. For example, you might need a command line program, or a certain perl module installed to do your job. Now is the time to check. Simply return true if the request can proceed and false if it can not. The "CPANPLUS::Dist::Base" implementation always returns true. $bool = $dist->init This method is called just after the new dist object is set up and before the "prepare" method is called. This is the time to set up the object so it can be used with your class. For example, you might want to add extra accessors to the "status" object, which you might do as follows: $dist->status->mk_accessors( qw[my_implementation_accessor] ); The "status" object is implemented as an instance of the "Object::Accessor" class. Please refer to its documentation for details. Return true if the initialization was successful, and false if it was not. The "CPANPLUS::Dist::Base" implementation does not alter your object and always returns true. $bool = $dist->prepare This runs the preparation step of your distribution. This step is meant to set up the environment so the "create" step can create the actual distribution(file). A "prepare" call in the standard "ExtUtils::MakeMaker" distribution would, for example, run "perl Makefile.PL" to find the dependencies for a distribution. For a "debian" distribution, this is where you would write all the metafiles required for the "dpkg-*" tools. The "CPANPLUS::Dist::Base" implementation simply calls the underlying distribution class (Typically "CPANPLUS::Dist::MM" or "CPANPLUS::Dist::Build"). Sets "$dist->status->prepared" to the return value of this function. If you override this method, you should make sure to set this value. $bool = $dist->create This runs the creation step of your distribution. This step is meant to follow up on the "prepare" call, that set up your environment so the "create" step can create the actual distribution(file). A "create" call in the standard "ExtUtils::MakeMaker" distribution would, for example, run "make" and "make test" to build and test a distribution. For a "debian" distribution, this is where you would create the actual ".deb" file using "dpkg". The "CPANPLUS::Dist::Base" implementation simply calls the underlying distribution class (Typically "CPANPLUS::Dist::MM" or "CPANPLUS::Dist::Build"). Sets "$dist->status->dist" to the location of the created distribution. If you override this method, you should make sure to set this value. Sets "$dist->status->created" to the return value of this function. If you override this method, you should make sure to set this value. $bool = $dist->install This runs the install step of your distribution. This step is meant to follow up on the "create" call, which prepared a distribution(file) to install. A "create" call in the standard "ExtUtils::MakeMaker" distribution would, for example, run "make install" to copy the distribution files to their final destination. For a "debian" distribution, this is where you would run "dpkg --install" on the created ".deb" file. The "CPANPLUS::Dist::Base" implementation simply calls the underlying distribution class (Typically "CPANPLUS::Dist::MM" or "CPANPLUS::Dist::Build"). Sets "$dist->status->installed" to the return value of this function. If you override this method, you should make sure to set this value. $bool = $dist->uninstall This runs the uninstall step of your distribution. This step is meant to remove the distribution from the file system. A "uninstall" call in the standard "ExtUtils::MakeMaker" distribution would, for example, run "make uninstall" to remove the distribution files the file system. For a "debian" distribution, this is where you would run "dpkg --uninstall PACKAGE". The "CPANPLUS::Dist::Base" implementation simply calls the underlying distribution class (Typically "CPANPLUS::Dist::MM" or "CPANPLUS::Dist::Build"). Sets "$dist->status->uninstalled" to the return value of this function. If you override this method, you should make sure to set this value. perl v5.16.2 2012-10-11 CPANPLUS::Dist::Base(3pm)
All times are GMT -4. The time now is 12:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy