PACKAGE = msec VERSION := $(shell grep 'Version:' $(PACKAGE).spec| cut -f 2) RELEASE := $(shell grep 'Release:' $(PACKAGE).spec| cut -f 2) TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__') all: promisc_check msec_find clean: find . -name *.o -exec rm -f {} \; find . -name *~ -exec rm -f {} \; rm -f src/promisc_check/promisc_check rm -f src/msec_find/msec_find promisc_check: (cd src/promisc_check && make) msec_find: (cd src/msec_find && make) install: (mkdir -p $(RPM_BUILD_ROOT)/etc/security/msec) (mkdir -p $(RPM_BUILD_ROOT)/usr/share/msec) (mkdir -p $(RPM_BUILD_ROOT)/usr/sbin) (cp init-sh/*.sh $(RPM_BUILD_ROOT)/usr/share/msec) (cp cron-sh/*.sh $(RPM_BUILD_ROOT)/usr/share/msec) (cp init-sh/msec $(RPM_BUILD_ROOT)/usr/sbin) (cp conf/perm.* conf/server.* $(RPM_BUILD_ROOT)/etc/security/msec) (mkdir -p $(RPM_BUILD_ROOT)/var/log) (mkdir -p $(RPM_BUILD_ROOT)/var/log/security) (touch $(RPM_BUILD_ROOT)/etc/security/msec/security.conf) (touch $(RPM_BUILD_ROOT)/var/log/security.log) (cd src/promisc_check && make install) (cd src/msec_find && make install) (mkdir -p $(RPM_BUILD_ROOT)/usr/man/man8/) install -d $(RPM_BUILD_ROOT)/usr/man/man8/ install -m644 man/C/*8 $(RPM_BUILD_ROOT)/usr/man/man8/ bzip2 -9f $(RPM_BUILD_ROOT)/usr/man/man8/*8 for i in man/??* ; do \ install -d $(RPM_BUILD_ROOT)/usr/man/`basename $$i`/man8 ; \ install -m 644 $$i/*.8 $(RPM_BUILD_ROOT)/usr/man/`basename $$i`/man8 ; \ bzip2 -9f $(RPM_BUILD_ROOT)/usr/man/`basename $$i`/man8/*8 ; \ done version: @echo $(VERSION)-$(RELEASE) # rules to build a test rpm localrpm: localdist buildrpm localdist: cleandist dir localcopy tar cleandist: rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2 dir: mkdir $(PACKAGE)-$(VERSION) localcopy: clean find . -not -name "$(PACKAGE)-$(VERSION)"|cpio -pd $(PACKAGE)-$(VERSION)/ find $(PACKAGE)-$(VERSION) -type d -name CVS|xargs rm -rf tar: tar cvf $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION) bzip2 -9vf $(PACKAGE)-$(VERSION).tar rm -rf $(PACKAGE)-$(VERSION) buildrpm: rpm -ta $(PACKAGE)-$(VERSION).tar.bz2 # rules to build a distributable rpm rpm: changelog cvstag dist buildrpm dist: cleandist dir export tar export: cvs export -d $(PACKAGE)-$(VERSION) -r $(TAG) $(PACKAGE) cvstag: cvs commit cvs tag $(CVSTAGOPT) $(TAG) changelog: ../common/username cvs2cl -U ../common/username -I ChangeLog rm -f ChangeLog.bak cvs commit -m "Generated by cvs2cl the `date '+%d_%b'`" ChangeLog nch'>topic/R9_0-64bit-branch Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry.Vignaud <thierry.vignaud@gmail.com>2014-05-27 22:03:36 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-05-27 22:03:36 +0200
commitcf0adf9c25bf58260d6759bf9ea444c74c516b80 (patch)
tree34f2b37c0a8aa7e3e94c26f3dd08d24209f621b6
parentece615a73f5d9692ea1c2551a2b06912ff08cfcc (diff)
downloaddrakx-cf0adf9c25bf58260d6759bf9ea444c74c516b80.tar
drakx-cf0adf9c25bf58260d6759bf9ea444c74c516b80.tar.gz
drakx-cf0adf9c25bf58260d6759bf9ea444c74c516b80.tar.bz2
drakx-cf0adf9c25bf58260d6759bf9ea444c74c516b80.tar.xz
drakx-cf0adf9c25bf58260d6759bf9ea444c74c516b80.zip
improve style
Diffstat
-rw-r--r--perl-install/detect_devices.pm32
1 files changed, 16 insertions, 16 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 9908497cf..17e37954a 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -23,23 +23,23 @@ The B<detect_devices> modules offers a high level API for detecting devices.*
It mostly relies on the L<c> modules for gluing libldetect back into the Perl world, and thus
being able to enumerate DMI/HID/PCI/USB devices.
-Other devices are mostly detected through /proc & /sys.
+Other devices are mostly detected through C</proc> & C</sys>.
Then the L<list_modules> enables to map modules into categories such as:
-=over
+=over 4
-=item network/ethernet,
+=item * C<network/ethernet,>
-=item network/wireless,
+=item * C<network/wireless,>
-=item network/wifi,
+=item * C<network/wifi,>
-=item disk/sata,
+=item * C<disk/sata,>
-=item disk/scsi,
+=item * C<disk/scsi,>
-=item ...
+=item * ...
=back
@@ -440,7 +440,7 @@ sub getATARAID() {
=item getXenBlk()
-Returns a list of all Xen block devices (/dev/xvd*).
+Returns a list of all Xen block devices (C</dev/xvd*>).
=cut
@@ -454,7 +454,7 @@ sub getXenBlk() {
=item getVirtIO()
-Returns a list of all VirtIO block devices (/dev/vd*).
+Returns a list of all VirtIO block devices (/dev/C<vd*>).
=cut
@@ -500,9 +500,9 @@ sub ix86_cpu_frequency() {
=item probe_category($category)
-Returns a list of devices which drivers are in the asked category.
+Returns a list of devices which drivers are in the asked category. eg:
-eg: my @eth_cards = probe_category('network/ethernet');
+ my @eth_cards = probe_category('network/ethernet');
=cut
@@ -1012,7 +1012,7 @@ sub pci_probe__real() {
=item pci_probe()
-Cache the result of c::pci_probe() and return the list of items in the PCI devices.
+Cache the result of C<c::pci_probe()> and return the list of items in the PCI devices.
=cut
@@ -1041,7 +1041,7 @@ sub usb_probe__real() {
=item usb_probe()
-Cache the result of c::usb_probe() and return the list of items in the USB devices.
+Cache the result of C<c::usb_probe()> and return the list of items in the USB devices.
=cut
@@ -1148,7 +1148,7 @@ sub pcmcia_probe() {
=item dmi_probe()
-Cache the result of c::dmi_probe() (aka dmidecode) and return the list of items in the DMI table
+Cache the result of c::dmi_probe() (aka C<dmidecode>) and return the list of items in the DMI table
=cut
@@ -1361,7 +1361,7 @@ pcmcia service
=item *
-computer_info() (really dmidecode) telling us it's a laptop
+C<computer_info()> (really C<dmidecode>) telling us it's a laptop
=item *