Skip to content

Commit

Permalink
udevil: replace debian man pages by our custom ones, relbump
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Oct 18, 2024
1 parent e572a60 commit adb5af8
Show file tree
Hide file tree
Showing 7 changed files with 441 additions and 171 deletions.
5 changes: 3 additions & 2 deletions udevil/.md5sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
f46d62d33b6e37fb90ffcec7ea0af65a 6ac69ed255626192758ee851594928498d9c10de.patch
7cec124a76abea318af09a54ada9a920 83b1254c2f1d778577324a341d43b83aca129822.patch
9e7592b146fad3f02865fcba5686a34a 925fd6659fb7448ec96585bbf448c2e970b5ff04.patch
bf017ebd9b04cf05af7f267cc1ad9734 Makefile.pod2man
43bae6c6115fb5059e877bda642e2c61 device-info-sys-stat.patch
48cdefdf18d904c33f2a188534a02367 devmon.1
70cdb486d8f69365c4fb964e4e2fc133 devmon.1.pod
281aa065d92c679cb41728069e72b272 udevil-0.4.4.tar.gz
570a3a1d2a73a67ff309a38ce90d2682 udevil.1
810c2466ca4a01e8330cb6a8a6b61bce udevil.1.pod
9 changes: 9 additions & 0 deletions udevil/Makefile.pod2man
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
all: devmon.1 udevil.1

%: %.pod
pod2man -r "udevil ${VERSION}" -c "" \
-n $(basename $@) -s $(subst .,,$(suffix $@)) $< > $@

install: all
mkdir -p ${DESTDIR}${MANPREFIX}/man1
cp -f devmon.1 udevil.1 ${DESTDIR}${MANPREFIX}/man1/
11 changes: 7 additions & 4 deletions udevil/Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@

name=udevil
version=0.4.4
release=2
release=3
source="$name-$version.tar.gz::https://github.com/IgnorantGuru/$name/archive/$version.tar.gz
3dacdad457b3d859993709f0181021ff0c2a865a.patch
4f79ba4233bcbe9a2c9b8a799cd9dedba9534eaf.patch
6ac69ed255626192758ee851594928498d9c10de.patch
83b1254c2f1d778577324a341d43b83aca129822.patch
925fd6659fb7448ec96585bbf448c2e970b5ff04.patch
device-info-sys-stat.patch
devmon.1
udevil.1"
Makefile.pod2man
devmon.1.pod
udevil.1.pod"

build() {
for f in $SRC/*.patch; do
Expand All @@ -31,5 +32,7 @@ build() {
make V=1
make DESTDIR=$PKG install

install -m 0644 -Dt $PKG/usr/share/man/man1/ $SRC/*.1
# install custom man pages
make -C $SRC -f Makefile.pod2man VERSION=$version \
MANPREFIX=/usr/share/man DESTDIR=$PKG install
}
78 changes: 0 additions & 78 deletions udevil/devmon.1

This file was deleted.

205 changes: 205 additions & 0 deletions udevil/devmon.1.pod
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
=pod

=encoding utf8

=head1 NAME

devmon - automounts and unmounts optical and removable drives

=head1 SYNOPSIS

=over

=item B<Run as daemon to automount>:

B<devmon> [B<UNIVERSAL OPTIONS>] [B<AUTOMOUNT OPTIONS>]

=item B<Run as client to manually un/mount>:

B<devmon> [B<UNIVERSAL OPTIONS>] [B<MOUNT OPTIONS>]

=back

=head1 DESCRIPTION

B<devmon> is a configuration-less bash daemon script which automounts optical
discs and removable drives.
It can also selectively autostart apps or execute commands after mounting,
ignore specified devices and volume labels, and manually mount and unmount
devices.

=head1 UNIVERSAL OPTIONS

These can be used in both daemon and client modes:

=over

=item B<--ignore-device> I<DEVICE>

Ignore I<DEVICE> (e.g. F</dev/sdd1>).

=item B<--ignore-label> "LABEL"

Ignore volume with LABEL.

=item B<--sync> | B<-s>

Add sync mount option for ext2-4 ntfs ufs, or flush for fat & vfat (slower writing but safer).

=item B<--internal>

Also attempt to un/mount internal system drives (this is mostly a fix for esata issues).

=item B<--always-exec>

Also run B<--exec-on-XXX> commands during startup or with B<--mount-all>.

=item B<--no-gui> | B<-g>

Do not show spacefm/zenity pop-up dialogs.

=back

=head1 AUTOMOUNT OPTIONS

These can be used only in daemon mode:

=over

=item B<--exec-on-device> I<DEVICE> "COMMAND"

Execute COMMAND after mounting DEVICE.

=item B<--exec-on-label> "LABEL" "COMMAND"

Execute COMMAND after mounting LABEL.

=item B<--exec-on-video> "COMMAND"

Execute COMMAND after video DVD mount.

=item B<--exec-on-audio> "COMMAND"

Execute COMMAND after audio CD insertion.

=item B<--exec-on-disc> "COMMAND"

Execute COMMAND after data CD/DVD mount.

=item B<--exec-on-drive> "COMMAND"

Execute COMMAND after drive mount.

=item B<--exec-on-unmount> "COMMAND"

Execute COMMAND after unmount.

=item B<--exec-on-remove> "COMMAND"

Execute COMMAND after drive removal.

Where the following in COMMAND will be replaced with:

=over

=item B<%d>

mount point directory (e.g. F</media/cd>)

=item B<%f>

device name (e.g. F</dev/sdd1>)

=item B<%l>

label of mounted volume

=back

Multiple B<--exec-on-XXX> options may be used to execute multiple commands.
Other B<exec-on-XXX> commands are ignored if B<exec-on-device> or B<-label> executed.

=item B<--mount-options> "OPTIONS"

Default: noexec,nosuid,nodev,noatime

=item B<--info-on-mount>

Show mounted drive info in a popup dialog.

=item B<--no-mount>

Don't mount anything, just exec (disables B<--exec-on-video>).

=item B<--no-unmount>

Don't unmount all removable drives on exit.

=back

=head1 B<MOUNT OPTIONS>

These can be used only in client mode:

=over

=item B<--unmount-removable> | B<-r>

Sync and unmount all removable drives and show pop-up dialog (spacefm or zenity required).

=item B<--unmount-recent> | B<-c>

Unmount most recently mounted removable drive.

=item B<--unmount-optical> | B<-o>

Unmount all optical drives (error pop-up only).

=item B<--unmount-all> | B<-u>

Same as B<--unmount-removable> B<--unmount-optical>.

=item B<--unmount> I<DIR> | I<DEVICE>

Unmount I<DEVICE> or mount point I<DIR>.

=item B<--eject> I<DIR> | I<DEVICE>

Unmount and eject I<DEVICE> or mount point I<DIR>.

=item B<--mount-all> | B<-a>

Mount all removable and optical drives.

=item B<--mount> I<DEVICE>

Mount I<DEVICE>.

=item B<--mount-options> | B<--mount-fstype> | B<--eject-options> "OPTIONS"

These options will be passed to mount or eject.

=item B<--enumerate-device-files>

List known devices.

=back

=head1 SEE ALSO

=over

=item L<udevil(1)>

=item L<http://igurublog.wordpress.com/downloads/script-devmon/>

Instruction and updates.

=back

=head1 AUTHORS

This manual page was written by Alexandr Savca L<mailto:alexandr.savca89@gmail.com>
for Zeppe-Lin system (but may be used by others).

=cut
Loading

0 comments on commit adb5af8

Please sign in to comment.