Linux midolikit.vps 3.10.0-1160.118.1.el7.x86_64 #1 SMP Wed Apr 24 16:01:50 UTC 2024 x86_64
Apache/2
Server IP : 103.97.127.53 & Your IP : 216.73.216.191
Domains :
Cant Read [ /etc/named.conf ]
User : web259
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
sbin /
Delete
Unzip
Name
Size
Permission
Date
Action
NetworkManager
2.83
MB
-rwxr-xr-x
2020-11-16 16:15
accessdb
11.55
KB
-rwxr-xr-x
2018-10-30 20:26
addgnupghome
3.05
KB
-rwxr-xr-x
2013-10-04 12:32
addpart
19.69
KB
-rwxr-xr-x
2021-02-02 16:31
adduser
134.39
KB
-rwxr-xr-x
2019-08-09 02:51
agetty
48.48
KB
-rwxr-xr-x
2021-02-02 16:31
alternatives
27.61
KB
-rwxr-xr-x
2020-10-13 15:46
anacron
35.52
KB
-rwxr-xr-x
2023-05-16 14:28
apachectl
3.32
KB
-rwxr-xr-x
2024-05-02 08:47
applygnupgdefaults
2.21
KB
-rwxr-xr-x
2013-10-04 12:32
apxs
23.3
KB
-rwxr-xr-x
2024-05-02 08:47
arp
63.98
KB
-rwxr-xr-x
2019-08-09 01:10
arpd
52.98
KB
-rwxr-xr-x
2020-09-30 16:40
arping
23.19
KB
-rwxr-xr-x
2017-08-04 08:01
audispd
39.75
KB
-rwxr-xr-x
2019-08-08 12:06
auditctl
39.56
KB
-rwxr-xr-x
2019-08-08 12:06
auditd
125.65
KB
-rwxr-xr-x
2019-08-08 12:06
augenrules
3.7
KB
-rwxr-xr-x
2019-08-08 12:06
aureport
105.39
KB
-rwxr-xr-x
2019-08-08 12:06
ausearch
109.8
KB
-rwxr-xr-x
2019-08-08 12:06
authconfig
43.49
KB
-rwxr-xr-x
2017-08-04 09:05
authconfig-tui
43.49
KB
-rwxr-xr-x
2017-08-04 09:05
autrace
15.49
KB
-rwxr-x---
2019-08-08 12:06
avcstat
11.25
KB
-rwxr-xr-x
2020-04-01 03:16
badblocks
27.69
KB
-rwxr-xr-x
2020-09-30 15:58
biosdecode
24.15
KB
-rwxr-xr-x
2021-03-16 15:25
biosdevname
36.57
KB
-rwxr-xr-x
2019-08-08 23:01
blkdeactivate
15.97
KB
-r-xr-xr-x
2021-04-28 13:31
blkdiscard
23.84
KB
-rwxr-xr-x
2021-02-02 16:31
blkid
77.92
KB
-rwxr-xr-x
2021-02-02 16:31
blockdev
32.2
KB
-rwxr-xr-x
2021-02-02 16:31
bridge
77.61
KB
-rwxr-xr-x
2020-09-30 16:40
btrfs
690.59
KB
-rwxr-xr-x
2017-08-06 16:32
btrfs-convert
378.62
KB
-rwxr-xr-x
2017-08-06 16:32
btrfs-debug-tree
354.23
KB
-rwxr-xr-x
2017-08-06 16:32
btrfs-find-root
346.22
KB
-rwxr-xr-x
2017-08-06 16:32
btrfs-image
374.63
KB
-rwxr-xr-x
2017-08-06 16:32
btrfs-map-logical
350.27
KB
-rwxr-xr-x
2017-08-06 16:32
btrfs-select-super
346.2
KB
-rwxr-xr-x
2017-08-06 16:32
btrfs-zero-log
346.2
KB
-rwxr-xr-x
2017-08-06 16:32
btrfsck
690.59
KB
-rwxr-xr-x
2017-08-06 16:32
btrfstune
350.24
KB
-rwxr-xr-x
2017-08-06 16:32
build-locale-archive
860.52
KB
-rwx------
2022-05-18 16:18
cacertdir_rehash
644
B
-rwxr-xr-x
2017-08-04 09:05
capsh
19.43
KB
-rwxr-xr-x
2020-04-01 03:08
cbq
32.73
KB
-rwxr-xr-x
2020-09-30 16:40
cfdisk
71.37
KB
-rwxr-xr-x
2021-02-02 16:31
chcpu
23.7
KB
-rwxr-xr-x
2021-02-02 16:31
checkgid
8.41
KB
-rwxr-xr-x
2024-05-02 08:49
chgpasswd
64.1
KB
-rwxr-xr-x
2019-08-09 02:51
chkconfig
40.22
KB
-rwxr-xr-x
2020-10-13 15:46
chpasswd
55.88
KB
-rwxr-xr-x
2019-08-09 02:51
chronyd
263.08
KB
-rwxr-xr-x
2019-08-08 11:40
chroot
32.48
KB
-rwxr-xr-x
2020-11-16 22:24
clock
48.44
KB
-rwxr-xr-x
2021-02-02 16:31
clockdiff
19.04
KB
-rwxr-xr-x
2017-08-04 08:01
consoletype
6.95
KB
-rwxr-xr-x
2020-11-16 16:20
convertquota
70.88
KB
-rwxr-xr-x
2019-08-09 02:34
cracklib-check
7.04
KB
-rwxr-xr-x
2014-06-10 05:42
cracklib-format
246
B
-rwxr-xr-x
2014-06-10 05:42
cracklib-packer
11.06
KB
-rwxr-xr-x
2014-06-10 05:42
cracklib-unpacker
7.02
KB
-rwxr-xr-x
2014-06-10 05:42
create-cracklib-dict
990
B
-rwxr-xr-x
2014-06-10 05:42
crond
68.48
KB
-rwxr-xr-x
2023-05-16 14:28
csf
245.08
KB
-rwx------
2025-02-27 16:25
ctrlaltdel
11.2
KB
-rwxr-xr-x
2021-02-02 16:31
ctstat
20.09
KB
-rwxr-xr-x
2020-09-30 16:40
ddns-confgen
19.44
KB
-rwxr-xr-x
2023-10-16 13:26
debugfs
120.65
KB
-rwxr-xr-x
2020-09-30 15:58
delpart
19.69
KB
-rwxr-xr-x
2021-02-02 16:31
depmod
143.24
KB
-rwxr-xr-x
2020-04-01 02:58
devlink
64.72
KB
-rwxr-xr-x
2020-09-30 16:40
dhclient
414.34
KB
-rwxr-xr-x
2021-06-09 16:09
dhclient-script
30.38
KB
-rwxr-xr-x
2021-06-09 14:37
dmfilemapd
19.16
KB
-r-xr-xr-x
2021-04-28 13:32
dmidecode
120.2
KB
-rwxr-xr-x
2021-03-16 15:25
dmsetup
149.2
KB
-r-xr-xr-x
2021-04-28 13:32
dmstats
149.2
KB
-r-xr-xr-x
2021-04-28 13:32
dnssec-checkds
922
B
-rwxr-xr-x
2023-10-16 13:26
dnssec-coverage
924
B
-rwxr-xr-x
2023-10-16 13:26
dnssec-dsfromkey
56.6
KB
-rwxr-xr-x
2023-10-16 13:26
dnssec-importkey
52.59
KB
-rwxr-xr-x
2023-10-16 13:26
dnssec-keyfromlabel
60.52
KB
-rwxr-xr-x
2023-10-16 13:26
dnssec-keygen
64.55
KB
-rwxr-xr-x
2023-10-16 13:26
dnssec-keymgr
920
B
-rwxr-xr-x
2023-10-16 13:26
dnssec-revoke
48.46
KB
-rwxr-xr-x
2023-10-16 13:26
dnssec-settime
56.52
KB
-rwxr-xr-x
2023-10-16 13:26
dnssec-signzone
105.7
KB
-rwxr-xr-x
2023-10-16 13:26
dnssec-verify
48.46
KB
-rwxr-xr-x
2023-10-16 13:26
dovecot
361.37
KB
-rwxr-xr-x
2024-05-02 09:45
dracut
55.83
KB
-rwxr-xr-x
2020-09-30 15:57
dumpe2fs
23.62
KB
-rwxr-xr-x
2020-09-30 15:58
e2freefrag
11.15
KB
-rwxr-xr-x
2020-09-30 15:58
e2fsck
250.55
KB
-rwxr-xr-x
2020-09-30 15:58
e2image
27.85
KB
-rwxr-xr-x
2020-09-30 15:58
e2label
69.41
KB
-rwxr-xr-x
2020-09-30 15:58
e2undo
11.32
KB
-rwxr-xr-x
2020-09-30 15:58
e4defrag
23.55
KB
-rwxr-xr-x
2020-09-30 15:58
eapol_test
1.77
MB
-rwxr-xr-x
2021-03-16 15:26
ebtables
6.85
KB
-rwxr-xr-x
2018-04-11 02:44
ebtables-restore
10.88
KB
-rwxr-xr-x
2018-04-11 02:44
ebtables-save
851
B
-rwxr-xr-x
2018-04-11 02:44
edquota
83.09
KB
-rwxr-xr-x
2019-08-09 02:34
envvars
1.03
KB
-rw-r--r--
2018-06-02 11:44
envvars-std
1.03
KB
-rw-r--r--
2024-05-02 08:47
ether-wake
73.26
KB
-rwxr-xr-x
2019-08-09 01:10
ethtool
293.87
KB
-rwxr-xr-x
2019-08-08 23:16
exicyclog
11.01
KB
-rwxr-xr-x
2025-05-15 10:01
exicyclog.O
11.01
KB
-rwxr-xr-x
2025-05-15 10:01
exigrep
10.41
KB
-rwxr-xr-x
2025-05-15 10:01
exigrep.O
10.41
KB
-rwxr-xr-x
2025-05-15 10:01
exim
1.34
MB
-rwsr-xr-x
2025-05-15 10:01
exim_checkaccess
4.7
KB
-rwxr-xr-x
2025-05-15 10:01
exim_checkaccess.O
4.7
KB
-rwxr-xr-x
2025-05-15 10:01
exim_dbmbuild
17.96
KB
-rwxr-xr-x
2025-05-15 10:01
exim_dbmbuild.O
17.96
KB
-rwxr-xr-x
2025-05-15 10:01
exim_dumpdb
28.63
KB
-rwxr-xr-x
2025-05-15 10:01
exim_dumpdb.O
28.63
KB
-rwxr-xr-x
2025-05-15 10:01
exim_fixdb
33.25
KB
-rwxr-xr-x
2025-05-15 10:01
exim_fixdb.O
33.25
KB
-rwxr-xr-x
2025-05-15 10:01
exim_lock
18.19
KB
-rwxr-xr-x
2025-05-15 10:01
exim_lock.O
18.19
KB
-rwxr-xr-x
2025-05-15 10:01
exim_tidydb
28.8
KB
-rwxr-xr-x
2025-05-15 10:01
exim_tidydb.O
28.8
KB
-rwxr-xr-x
2025-05-15 10:01
eximstats
147.98
KB
-rwxr-xr-x
2025-05-15 10:01
eximstats.O
147.98
KB
-rwxr-xr-x
2025-05-15 10:01
exinext
8.02
KB
-rwxr-xr-x
2025-05-15 10:01
exinext.O
8.02
KB
-rwxr-xr-x
2025-05-15 10:01
exipick
59.25
KB
-rwxr-xr-x
2025-05-15 10:01
exipick.O
59.25
KB
-rwxr-xr-x
2025-05-15 10:01
exiqgrep
5.42
KB
-rwxr-xr-x
2025-05-15 10:01
exiqgrep.O
5.42
KB
-rwxr-xr-x
2025-05-15 10:01
exiqsumm
5.04
KB
-rwxr-xr-x
2025-05-15 10:01
exiqsumm.O
5.04
KB
-rwxr-xr-x
2025-05-15 10:01
exiwhat
4.32
KB
-rwxr-xr-x
2025-05-15 10:01
exiwhat.O
4.32
KB
-rwxr-xr-x
2025-05-15 10:01
faillock
15.02
KB
-rwxr-xr-x
2020-04-01 04:00
fcgistarter
13.39
KB
-rwxr-xr-x
2024-05-02 08:49
fdformat
11.27
KB
-rwxr-xr-x
2021-02-02 16:31
fdisk
195.8
KB
-rwxr-xr-x
2021-02-02 16:31
filefrag
15.23
KB
-rwxr-xr-x
2020-09-30 15:58
findfs
11.2
KB
-rwxr-xr-x
2021-02-02 16:31
firewalld
6.87
KB
-rwxr-xr-x
2021-04-28 13:31
fixfiles
11.03
KB
-rwxr-xr-x
2020-04-01 04:04
fsck
32.12
KB
-rwxr-xr-x
2021-02-02 16:31
fsck.btrfs
1.16
KB
-rwxr-xr-x
2017-08-06 16:32
fsck.cramfs
19.57
KB
-rwxr-xr-x
2021-02-02 16:31
fsck.ext2
250.55
KB
-rwxr-xr-x
2020-09-30 15:58
fsck.ext3
250.55
KB
-rwxr-xr-x
2020-09-30 15:58
fsck.ext4
250.55
KB
-rwxr-xr-x
2020-09-30 15:58
fsck.minix
73.32
KB
-rwxr-xr-x
2021-02-02 16:31
fsck.xfs
433
B
-rwxr-xr-x
2020-09-30 17:51
fsfreeze
11.23
KB
-rwxr-xr-x
2021-02-02 16:31
fstrim
40.59
KB
-rwxr-xr-x
2021-02-02 16:31
fuser
32.34
KB
-rwxr-xr-x
2020-09-30 17:20
fxload
19.26
KB
-rwxr-xr-x
2014-06-10 04:45
genhomedircon
23.77
KB
-rwxr-xr-x
2020-04-01 04:04
genhostid
6.94
KB
-rwxr-xr-x
2020-11-16 16:20
genl
52.81
KB
-rwxr-xr-x
2020-09-30 16:40
genl-ctrl-list
11.27
KB
-rwxr-xr-x
2017-08-03 19:48
genrandom
11.16
KB
-rwxr-xr-x
2023-10-16 13:26
getcap
11.13
KB
-rwxr-xr-x
2020-04-01 03:08
getenforce
7.01
KB
-rwxr-xr-x
2020-04-01 03:16
getpcaps
7.07
KB
-rwxr-xr-x
2020-04-01 03:08
getsebool
11.13
KB
-rwxr-xr-x
2020-04-01 03:16
glibc_post_upgrade.x86_64
772.05
KB
-rwx------
2022-05-18 16:18
groupadd
85.65
KB
-rwxr-xr-x
2019-08-09 02:51
groupdel
77.38
KB
-rwxr-xr-x
2019-08-09 02:51
groupmems
55.97
KB
-rwxr-xr-x
2019-08-09 02:51
groupmod
85.66
KB
-rwxr-xr-x
2019-08-09 02:51
grpck
59.93
KB
-rwxr-xr-x
2019-08-09 02:51
grpconv
51.73
KB
-rwxr-xr-x
2019-08-09 02:51
grpunconv
51.73
KB
-rwxr-xr-x
2019-08-09 02:51
grub2-bios-setup
1.03
MB
-rwxr-xr-x
2024-04-30 19:38
grub2-get-kernel-settings
2.08
KB
-rwxr-xr-x
2024-04-30 19:38
grub2-install
1.29
MB
-rwxr-xr-x
2024-04-30 19:38
grub2-macbless
1.02
MB
-rwxr-xr-x
2024-04-30 19:38
grub2-mkconfig
7.63
KB
-rwxr-xr-x
2024-04-30 19:38
grub2-ofpathname
225.54
KB
-rwxr-xr-x
2024-04-30 19:38
grub2-probe
1.03
MB
-rwxr-xr-x
2024-04-30 19:38
grub2-reboot
4
KB
-rwxr-xr-x
2024-04-30 19:38
grub2-rpm-sort
258.52
KB
-rwxr-xr-x
2024-04-30 19:38
grub2-set-default
3.46
KB
-rwxr-xr-x
2024-04-30 19:38
grub2-setpassword
2.96
KB
-rwxr-xr-x
2024-04-30 19:38
grub2-sparc64-setup
1.04
MB
-rwxr-xr-x
2024-04-30 19:38
grubby
71.27
KB
-rwxr-xr-x
2019-08-08 23:41
gss-server
23.13
KB
-rwxr-xr-x
2022-11-30 19:01
halt
704.8
KB
-rwxr-xr-x
2023-12-07 14:51
hardlink
15.29
KB
-rwxr-xr-x
2014-06-10 06:26
htcacheclean
39.9
KB
-rwxr-xr-x
2024-05-02 08:49
httpd
3.02
MB
-rwxr-xr-x
2024-05-02 08:49
hwclock
48.44
KB
-rwxr-xr-x
2021-02-02 16:31
iconvconfig
22.15
KB
-rwxr-xr-x
2022-05-18 16:18
iconvconfig.x86_64
22.15
KB
-rwxr-xr-x
2022-05-18 16:18
ifcfg
2.99
KB
-rwxr-xr-x
2020-09-30 16:40
ifconfig
80.05
KB
-rwxr-xr-x
2019-08-09 01:10
ifdown
1.61
KB
-rwxr-xr-x
2020-05-22 10:44
ifenslave
19.74
KB
-rwxr-xr-x
2017-08-04 08:01
ifstat
40.6
KB
-rwxr-xr-x
2020-09-30 16:40
iftop
62.02
KB
-rwxr-xr-x
2019-07-28 00:21
ifup
4.89
KB
-rwxr-xr-x
2020-05-22 10:44
imunify-notifier
9.8
MB
-rwxr-xr-x
2026-07-07 09:00
init
1.56
MB
-rwxr-xr-x
2023-12-07 14:51
insmod
143.24
KB
-rwxr-xr-x
2020-04-01 02:58
install-info
110.42
KB
-rwxr-xr-x
2018-04-11 01:03
installkernel
2.69
KB
-rwxr-xr-x
2019-08-08 23:41
intel-microcode2ucode
11.1
KB
-rwxr-xr-x
2023-12-07 14:48
ip
459.59
KB
-rwxr-xr-x
2020-09-30 16:40
ip6tables
91.52
KB
-rwxr-xr-x
2020-10-01 16:52
ip6tables-restore
91.52
KB
-rwxr-xr-x
2020-10-01 16:52
ip6tables-save
91.52
KB
-rwxr-xr-x
2020-10-01 16:52
ipmaddr
19.33
KB
-rwxr-xr-x
2019-08-09 01:10
iprconfig
394.37
KB
-rwxr-xr-x
2020-02-05 12:58
iprdbg
135.94
KB
-rwx------
2020-02-05 12:58
iprdump
123.67
KB
-rwxr-xr-x
2020-02-05 12:58
iprinit
123.64
KB
-rwxr-xr-x
2020-02-05 12:58
iprsos
2.18
KB
-rwxr-xr-x
2020-02-05 12:58
iprupdate
123.64
KB
-rwxr-xr-x
2020-02-05 12:58
ipset
7.02
KB
-rwxr-xr-x
2019-08-08 23:55
iptables
91.52
KB
-rwxr-xr-x
2020-10-01 16:52
iptables-restore
91.52
KB
-rwxr-xr-x
2020-10-01 16:52
iptables-save
91.52
KB
-rwxr-xr-x
2020-10-01 16:52
iptunnel
23.33
KB
-rwxr-xr-x
2019-08-09 01:10
irqbalance
48.5
KB
-rwxr-xr-x
2019-08-08 23:57
isc-hmac-fixup
11.2
KB
-rwxr-xr-x
2023-10-16 13:26
kexec
166.06
KB
-rwxr-xr-x
2021-06-09 16:09
killall5
23.17
KB
-rwxr-xr-x
2014-06-09 23:16
kpartx
39.47
KB
-rwxr-xr-x
2022-11-16 15:21
lchage
15.41
KB
-rwxr-xr-x
2018-04-12 18:44
ldattach
27.93
KB
-rwxr-xr-x
2021-02-02 16:31
ldconfig
952.08
KB
-rwxr-xr-x
2022-05-18 16:18
lfd
382.43
KB
-rwx------
2025-02-27 16:25
lgroupadd
11.28
KB
-rwxr-xr-x
2018-04-12 18:44
lgroupdel
11.26
KB
-rwxr-xr-x
2018-04-12 18:44
lgroupmod
15.44
KB
-rwxr-xr-x
2018-04-12 18:44
lid
15.4
KB
-rwxr-xr-x
2018-04-12 18:44
lnewusers
15.46
KB
-rwxr-xr-x
2018-04-12 18:44
lnstat
20.09
KB
-rwxr-xr-x
2020-09-30 16:40
load_policy
10.97
KB
-rwxr-xr-x
2020-04-01 04:04
logrotate
68.61
KB
-rwxr-xr-x
2020-04-01 03:26
logsave
11.27
KB
-rwxr-xr-x
2020-09-30 15:58
losetup
82.45
KB
-rwxr-xr-x
2021-02-02 16:31
lpasswd
15.5
KB
-rwxr-xr-x
2018-04-12 18:44
lshw
895.18
KB
-rwxr-xr-x
2020-09-30 16:58
lsmod
143.24
KB
-rwxr-xr-x
2020-04-01 02:58
lsof
150.57
KB
-rwxr-xr-x
2018-10-30 16:28
luseradd
15.38
KB
-rwxr-xr-x
2018-04-12 18:44
luserdel
11.3
KB
-rwxr-xr-x
2018-04-12 18:44
lusermod
19.43
KB
-rwxr-xr-x
2018-04-12 18:44
lwresd
768.03
KB
-rwxr-xr-x
2023-10-16 13:26
makedumpfile
376.52
KB
-rwxr-xr-x
2021-06-09 16:09
mariadbd
24.68
MB
-rwxr-xr-x
2022-08-10 13:22
matchpathcon
11.19
KB
-rwxr-xr-x
2020-04-01 03:16
mii-diag
20.08
KB
-rwxr-xr-x
2019-08-09 01:10
mii-tool
19.51
KB
-rwxr-xr-x
2019-08-09 01:10
mkdict
246
B
-rwxr-xr-x
2014-06-10 05:42
mkdumprd
13.99
KB
-rwxr-xr-x
2021-06-09 16:09
mke2fs
94.08
KB
-rwxr-xr-x
2020-09-30 15:58
mkfs
11.25
KB
-rwxr-xr-x
2021-02-02 16:31
mkfs.btrfs
366.45
KB
-rwxr-xr-x
2017-08-06 16:32
mkfs.cramfs
36.16
KB
-rwxr-xr-x
2021-02-02 16:31
mkfs.ext2
94.08
KB
-rwxr-xr-x
2020-09-30 15:58
mkfs.ext3
94.08
KB
-rwxr-xr-x
2020-09-30 15:58
mkfs.ext4
94.08
KB
-rwxr-xr-x
2020-09-30 15:58
mkfs.minix
36.27
KB
-rwxr-xr-x
2021-02-02 16:31
mkfs.xfs
359.8
KB
-rwxr-xr-x
2020-09-30 17:52
mkhomedir_helper
19.05
KB
-rwxr-xr-x
2020-04-01 04:00
mklost+found
11.11
KB
-rwxr-xr-x
2020-09-30 15:58
mkswap
69.64
KB
-rwxr-xr-x
2021-02-02 16:31
modinfo
143.24
KB
-rwxr-xr-x
2020-04-01 02:58
modprobe
143.24
KB
-rwxr-xr-x
2020-04-01 02:58
mtr
83.18
KB
-rwxr-xr-x
2014-06-09 22:43
mysqld
24.68
MB
-rwxr-xr-x
2022-08-10 13:22
named
768.03
KB
-rwxr-xr-x
2023-10-16 13:26
named-checkconf
32.25
KB
-rwxr-xr-x
2023-10-16 13:26
named-checkzone
32.06
KB
-rwxr-xr-x
2023-10-16 13:26
named-compilezone
32.06
KB
-rwxr-xr-x
2023-10-16 13:26
named-journalprint
11.13
KB
-rwxr-xr-x
2023-10-16 13:26
nameif
15.32
KB
-rwxr-xr-x
2019-08-09 01:10
netreport
10.96
KB
-rwxr-sr-x
2020-11-16 16:20
new-kernel-pkg
24.96
KB
-rwxr-xr-x
2019-08-08 23:41
newusers
93.45
KB
-rwxr-xr-x
2019-08-09 02:51
nginx
6.62
MB
-rwxr-xr-x
2024-05-02 09:26
nl-class-add
11.7
KB
-rwxr-xr-x
2017-08-03 19:48
nl-class-delete
11.55
KB
-rwxr-xr-x
2017-08-03 19:48
nl-class-list
11.48
KB
-rwxr-xr-x
2017-08-03 19:48
nl-classid-lookup
11.29
KB
-rwxr-xr-x
2017-08-03 19:48
nl-cls-add
11.76
KB
-rwxr-xr-x
2017-08-03 19:48
nl-cls-delete
11.68
KB
-rwxr-xr-x
2017-08-03 19:48
nl-cls-list
11.58
KB
-rwxr-xr-x
2017-08-03 19:48
nl-link-list
11.52
KB
-rwxr-xr-x
2017-08-03 19:48
nl-pktloc-lookup
11.36
KB
-rwxr-xr-x
2017-08-03 19:48
nl-qdisc-add
11.6
KB
-rwxr-xr-x
2017-08-03 19:48
nl-qdisc-delete
11.54
KB
-rwxr-xr-x
2017-08-03 19:48
nl-qdisc-list
11.63
KB
-rwxr-xr-x
2017-08-03 19:48
nologin
7.01
KB
-rwxr-xr-x
2021-02-02 16:31
nsec3hash
11.13
KB
-rwxr-xr-x
2023-10-16 13:26
nstat
23.88
KB
-rwxr-xr-x
2020-09-30 16:40
ownership
15.04
KB
-rwxr-xr-x
2021-03-16 15:25
packer
11.06
KB
-rwxr-xr-x
2014-06-10 05:42
pam_console_apply
39.69
KB
-rwxr-xr-x
2020-04-01 04:00
pam_tally2
15.05
KB
-rwxr-xr-x
2020-04-01 04:00
pam_timestamp_check
10.97
KB
-rwsr-xr-x
2020-04-01 04:00
parted
77.22
KB
-rwxr-xr-x
2020-04-01 03:58
partprobe
11.23
KB
-rwxr-xr-x
2020-04-01 03:58
partx
86.55
KB
-rwxr-xr-x
2021-02-02 16:31
pidof
23.17
KB
-rwxr-xr-x
2014-06-09 23:16
ping6
64.63
KB
-rwxr-xr-x
2017-08-04 08:01
pivot_root
11.19
KB
-rwxr-xr-x
2021-02-02 16:31
plipconfig
11.06
KB
-rwxr-xr-x
2019-08-09 01:10
pluginviewer
15.23
KB
-rwxr-xr-x
2022-02-24 13:27
plymouth-set-default-theme
6.21
KB
-rwxr-xr-x
2020-10-01 16:53
plymouthd
84.22
KB
-rwxr-xr-x
2020-10-01 16:53
poweroff
704.8
KB
-rwxr-xr-x
2023-12-07 14:51
ppp-watch
23.2
KB
-rwxr-xr-x
2020-11-16 16:20
pure-authd
23.35
KB
-rwxr-xr-x
2024-05-02 09:32
pure-certd
50.71
KB
-rwxr-xr-x
2024-05-02 09:32
pure-ftpd
687.02
KB
-rwxr-xr-x
2024-05-02 09:32
pure-ftpwho
74.55
KB
-rwxr-xr-x
2024-05-02 09:32
pure-mrtginfo
26.32
KB
-rwxr-xr-x
2024-05-02 09:32
pure-quotacheck
44.91
KB
-rwxr-xr-x
2024-05-02 09:32
pure-uploadscript
49.08
KB
-rwxr-xr-x
2024-05-02 09:32
pwck
51.71
KB
-rwxr-xr-x
2019-08-09 02:51
pwconv
47.57
KB
-rwxr-xr-x
2019-08-09 02:51
pwhistory_helper
15.44
KB
-rwxr-xr-x
2020-04-01 04:00
pwunconv
47.59
KB
-rwxr-xr-x
2019-08-09 02:51
quot
70.66
KB
-rwxr-xr-x
2019-08-09 02:34
quotacheck
107.29
KB
-rwxr-xr-x
2019-08-09 02:34
quotaoff
75.03
KB
-rwxr-xr-x
2019-08-09 02:34
quotaon
75.03
KB
-rwxr-xr-x
2019-08-09 02:34
quotastats
14.03
KB
-rwxr-xr-x
2019-08-09 02:34
rdisc
23.17
KB
-rwxr-xr-x
2017-08-04 08:01
rdma
73.42
KB
-rwxr-xr-x
2020-09-30 16:40
readprofile
15.46
KB
-rwxr-xr-x
2021-02-02 16:31
reboot
704.8
KB
-rwxr-xr-x
2023-12-07 14:51
repquota
75.16
KB
-rwxr-xr-x
2019-08-09 02:34
resize2fs
48.41
KB
-rwxr-xr-x
2020-09-30 15:58
resizepart
32.36
KB
-rwxr-xr-x
2021-02-02 16:31
restorecon
27.16
KB
-rwxr-xr-x
2020-04-01 04:04
rmmod
143.24
KB
-rwxr-xr-x
2020-04-01 02:58
rndc
35.88
KB
-rwxr-xr-x
2023-10-16 13:26
rndc-confgen
19.44
KB
-rwxr-xr-x
2023-10-16 13:26
rotatelogs
26.67
KB
-rwxr-xr-x
2024-05-02 08:49
route
66.6
KB
-rwxr-xr-x
2019-08-09 01:10
routef
173
B
-rwxr-xr-x
2020-09-30 16:40
routel
1.59
KB
-rwxr-xr-x
2020-09-30 16:40
rpc.rquotad
78.95
KB
-rwxr-xr-x
2019-08-09 02:34
rpcbind
60.07
KB
-rwxr-xr-x
2020-04-01 04:19
rpcinfo
27.3
KB
-rwxr-xr-x
2020-04-01 04:19
rsyslogd
648.45
KB
-rwxr-xr-x
2022-05-31 15:22
rtacct
41.93
KB
-rwxr-xr-x
2020-09-30 16:40
rtcwake
31.96
KB
-rwxr-xr-x
2021-02-02 16:31
rtmon
48.67
KB
-rwxr-xr-x
2020-09-30 16:40
rtpr
37
B
-rwxr-xr-x
2020-09-30 16:40
rtstat
20.09
KB
-rwxr-xr-x
2020-09-30 16:40
runlevel
704.8
KB
-rwxr-xr-x
2023-12-07 14:51
runuser
32.21
KB
-rwxr-xr-x
2021-02-02 16:31
safe_finger
11.08
KB
-rwxr-xr-x
2014-06-10 04:41
sasl2-shared-mechlist
10.98
KB
-rwxr-xr-x
2022-02-24 13:27
saslauthd
92.59
KB
-rwxr-xr-x
2022-02-24 13:27
sasldblistusers2
19.26
KB
-rwxr-xr-x
2022-02-24 13:27
saslpasswd2
15.09
KB
-rwxr-xr-x
2022-02-24 13:27
sefcontext_compile
60.53
KB
-rwxr-xr-x
2020-04-01 03:16
selabel_digest
11.17
KB
-rwxr-xr-x
2020-04-01 03:16
selabel_lookup
11.14
KB
-rwxr-xr-x
2020-04-01 03:16
selabel_lookup_best_match
11.16
KB
-rwxr-xr-x
2020-04-01 03:16
selabel_partial_match
11.09
KB
-rwxr-xr-x
2020-04-01 03:16
selinux_restorecon
15.21
KB
-rwxr-xr-x
2020-04-01 03:16
selinuxconlist
11.1
KB
-rwxr-xr-x
2020-04-01 03:16
selinuxdefcon
11.12
KB
-rwxr-xr-x
2020-04-01 03:16
selinuxenabled
6.98
KB
-rwxr-xr-x
2020-04-01 03:16
selinuxexeccon
7.09
KB
-rwxr-xr-x
2020-04-01 03:16
semanage
42.76
KB
-rwxr-xr-x
2020-04-01 04:04
semodule
23.77
KB
-rwxr-xr-x
2020-04-01 04:04
sendmail
1.34
MB
-rwsr-xr-x
2025-05-15 10:01
service
3.17
KB
-rwxr-xr-x
2020-11-16 16:20
sestatus
15.02
KB
-rwxr-xr-x
2020-04-01 04:04
setcap
11.13
KB
-rwxr-xr-x
2020-04-01 03:08
setenforce
7.05
KB
-rwxr-xr-x
2020-04-01 03:16
setfiles
27.16
KB
-rwxr-xr-x
2020-04-01 04:04
setquota
83.16
KB
-rwxr-xr-x
2019-08-09 02:34
setsebool
14.99
KB
-rwxr-xr-x
2020-04-01 04:04
sfdisk
83.25
KB
-rwxr-xr-x
2021-02-02 16:31
shutdown
704.8
KB
-rwxr-xr-x
2023-12-07 14:51
sim_server
10.97
KB
-rwxr-xr-x
2022-11-30 19:01
slattach
42.4
KB
-rwxr-xr-x
2019-08-09 01:10
sln
743.78
KB
-rwxr-xr-x
2022-05-18 16:18
ss
128.44
KB
-rwxr-xr-x
2020-09-30 16:40
sshd
832.96
KB
-rwxr-xr-x
2023-08-04 16:00
sshd-keygen
3.53
KB
-rwxr-xr-x
2023-08-04 16:00
suexec
22.5
KB
-rwsr-xr-x
2024-05-02 08:49
sulogin
40.53
KB
-rwxr-xr-x
2021-02-02 16:31
sushell
67
B
-rwxr-xr-x
2020-11-16 16:20
swaplabel
15.31
KB
-rwxr-xr-x
2021-02-02 16:31
swapoff
15.53
KB
-rwxr-xr-x
2021-02-02 16:31
swapon
53.29
KB
-rwxr-xr-x
2021-02-02 16:31
switch_root
15.35
KB
-rwxr-xr-x
2021-02-02 16:31
sys-unconfig
184
B
-rwxr-xr-x
2020-11-16 16:20
sysctl
23.57
KB
-rwxr-xr-x
2020-09-30 17:21
tc
384.66
KB
-rwxr-xr-x
2020-09-30 16:40
tcpd
36.62
KB
-rwxr-xr-x
2014-06-10 04:41
tcpdmatch
40.83
KB
-rwxr-xr-x
2014-06-10 04:41
tcpdump
920.16
KB
-rwxr-xr-x
2019-12-02 17:44
tcpslice
23.64
KB
-rwxr-xr-x
2019-12-02 17:44
telinit
704.8
KB
-rwxr-xr-x
2023-12-07 14:51
testsaslauthd
15.09
KB
-rwxr-xr-x
2022-02-24 13:27
tmpwatch
27.87
KB
-rwxr-xr-x
2019-08-09 02:58
tracepath
15.05
KB
-rwxr-xr-x
2017-08-04 08:01
tracepath6
15.05
KB
-rwxr-xr-x
2017-08-04 08:01
try-from
23.47
KB
-rwxr-xr-x
2014-06-10 04:41
tsig-keygen
19.44
KB
-rwxr-xr-x
2023-10-16 13:26
tune2fs
69.41
KB
-rwxr-xr-x
2020-09-30 15:58
tuned
3.29
KB
-rwxr-xr-x
2019-03-21 22:10
tuned-adm
5.22
KB
-rwxr-xr-x
2019-03-21 22:10
udevadm
414.27
KB
-rwxr-xr-x
2023-12-07 14:51
unix_chkpwd
35.42
KB
-rwsr-xr-x
2020-04-01 04:00
unix_update
35.42
KB
-rwx------
2020-04-01 04:00
update-alternatives
27.61
KB
-rwxr-xr-x
2020-10-13 15:46
useradd
134.39
KB
-rwxr-xr-x
2019-08-09 02:51
userdel
93.5
KB
-rwxr-xr-x
2019-08-09 02:51
usermod
130.33
KB
-rwxr-xr-x
2019-08-09 02:51
usernetctl
11.03
KB
-rwsr-xr-x
2020-11-16 16:20
uuserver
14.97
KB
-rwxr-xr-x
2022-11-30 19:01
vigr
62.54
KB
-rwxr-xr-x
2019-08-09 02:51
vipw
62.54
KB
-rwxr-xr-x
2019-08-09 02:51
virt-what
11.57
KB
-rwxr-xr-x
2021-08-31 14:47
visudo
200.91
KB
-rwxr-xr-x
2023-01-25 16:36
vmcore-dmesg
19.28
KB
-rwxr-xr-x
2021-06-09 16:09
vpddecode
15.33
KB
-rwxr-xr-x
2021-03-16 15:25
weak-modules
31.9
KB
-rwxr-xr-x
2020-04-01 02:58
wipefs
28.05
KB
-rwxr-xr-x
2021-02-02 16:31
wpa_cli
128.06
KB
-rwxr-xr-x
2021-03-16 15:26
wpa_passphrase
56.79
KB
-rwxr-xr-x
2021-03-16 15:26
wpa_supplicant
1.93
MB
-rwxr-xr-x
2021-03-16 15:26
xfs_admin
1.35
KB
-rwxr-xr-x
2020-09-30 17:51
xfs_bmap
638
B
-rwxr-xr-x
2020-09-30 17:51
xfs_copy
339.33
KB
-rwxr-xr-x
2020-09-30 17:52
xfs_db
576.38
KB
-rwxr-xr-x
2020-09-30 17:52
xfs_estimate
11.16
KB
-rwxr-xr-x
2020-09-30 17:52
xfs_freeze
767
B
-rwxr-xr-x
2020-09-30 17:51
xfs_fsr
31.83
KB
-rwxr-xr-x
2020-09-30 17:52
xfs_growfs
327.2
KB
-rwxr-xr-x
2020-09-30 17:52
xfs_info
472
B
-rwxr-xr-x
2020-09-30 17:51
xfs_io
122.68
KB
-rwxr-xr-x
2020-09-30 17:52
xfs_logprint
355.81
KB
-rwxr-xr-x
2020-09-30 17:52
xfs_mdrestore
314.81
KB
-rwxr-xr-x
2020-09-30 17:52
xfs_metadump
747
B
-rwxr-xr-x
2020-09-30 17:51
xfs_mkfile
1007
B
-rwxr-xr-x
2020-09-30 17:51
xfs_ncheck
650
B
-rwxr-xr-x
2020-09-30 17:51
xfs_quota
84.88
KB
-rwxr-xr-x
2020-09-30 17:52
xfs_repair
563.2
KB
-rwxr-xr-x
2020-09-30 17:52
xfs_rtcp
15.25
KB
-rwxr-xr-x
2020-09-30 17:52
xqmstats
14.03
KB
-rwxr-xr-x
2019-08-09 02:34
xtables-multi
91.52
KB
-rwxr-xr-x
2020-10-01 16:52
zdump
14.02
KB
-rwxr-xr-x
2022-05-18 16:18
zic
50.02
KB
-rwxr-xr-x
2022-05-18 16:18
zramctl
82.23
KB
-rwxr-xr-x
2021-02-02 16:31
Save
Rename
#!/usr/bin/perl -w # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 5.004; use strict; package apxs; ## ## Configuration ## # are we building in a cross compile environment? If so, destdir contains # the base directory of the cross compiled environment, otherwise destdir # is the empty string. my $destdir = ""; my $ddi = rindex($0, "/usr/bin"); if ($ddi >= 0) { $destdir = substr($0, 0, $ddi); } my %config_vars = (); my $installbuilddir = "/var/www/build"; get_config_vars($destdir . "$installbuilddir/config_vars.mk",\%config_vars); # read the configuration variables once my $prefix = get_vars("prefix"); my $CFG_PREFIX = $prefix; my $exec_prefix = get_vars("exec_prefix"); my $datadir = get_vars("datadir"); my $localstatedir = get_vars("localstatedir"); my $CFG_TARGET = get_vars("progname"); my $CFG_SYSCONFDIR = get_vars("sysconfdir"); my $CFG_CFLAGS = join ' ', map { get_vars($_) } qw(SHLTCFLAGS CFLAGS NOTEST_CPPFLAGS EXTRA_CPPFLAGS EXTRA_CFLAGS); my $CFG_LDFLAGS = join ' ', map { get_vars($_) } qw(LDFLAGS NOTEST_LDFLAGS SH_LDFLAGS); my $includedir = $destdir . get_vars("includedir"); my $CFG_INCLUDEDIR = eval qq("$includedir"); my $CFG_CC = get_vars("CC"); my $libexecdir = $destdir . get_vars("libexecdir"); my $CFG_LIBEXECDIR = eval qq("$libexecdir"); my $sbindir = get_vars("sbindir"); my $CFG_SBINDIR = eval qq("$sbindir"); my $ltflags = $ENV{'LTFLAGS'}; $ltflags or $ltflags = "--silent"; my %internal_vars = map {$_ => 1} qw(TARGET CC CFLAGS CFLAGS_SHLIB LD_SHLIB LDFLAGS_SHLIB LIBS_SHLIB PREFIX SBINDIR INCLUDEDIR LIBEXECDIR SYSCONFDIR); ## ## parse argument line ## # defaults for parameters my $opt_n = ''; my $opt_g = ''; my $opt_c = 0; my $opt_o = ''; my @opt_D = (); my @opt_I = (); my @opt_L = (); my @opt_l = (); my @opt_W = (); my @opt_S = (); my $opt_e = 0; my $opt_i = 0; my $opt_a = 0; my $opt_A = 0; my $opt_q = 0; my $opt_h = 0; my $opt_p = 0; my $opt_v = 0; # this subroutine is derived from Perl's getopts.pl with the enhancement of # the "+" metacharacter at the format string to allow a list to be built by # subsequent occurrences of the same option. sub Getopts { my ($argumentative, @ARGV) = @_; my $errs = 0; local $_; my @args = split / */, $argumentative; while (@ARGV && ($_ = $ARGV[0]) =~ /^-(.)(.*)/) { my ($first, $rest) = ($1,$2); if ($_ =~ m|^--$|) { shift @ARGV; last; } my $pos = index($argumentative,$first); if ($pos >= 0) { if ($pos < $#args && $args[$pos+1] eq ':') { shift @ARGV; if ($rest eq '') { unless (@ARGV) { error("Incomplete option: $first (needs an argument)"); $errs++; } $rest = shift(@ARGV); } eval "\$opt_$first = \$rest;"; } elsif ($pos < $#args && $args[$pos+1] eq '+') { shift @ARGV; if ($rest eq '') { unless (@ARGV) { error("Incomplete option: $first (needs an argument)"); $errs++; } $rest = shift(@ARGV); } eval "push(\@opt_$first, \$rest);"; } else { eval "\$opt_$first = 1"; if ($rest eq '') { shift(@ARGV); } else { $ARGV[0] = "-$rest"; } } } else { error("Unknown option: $first"); $errs++; if ($rest ne '') { $ARGV[0] = "-$rest"; } else { shift(@ARGV); } } } return ($errs == 0, @ARGV); } sub usage { print STDERR "Usage: apxs -g [-S <var>=<val>] -n <modname>\n"; print STDERR " apxs -q [-v] [-S <var>=<val>] [<query> ...]\n"; print STDERR " apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]\n"; print STDERR " [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]\n"; print STDERR " [-Wl,<flags>] [-p] <files> ...\n"; print STDERR " apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...\n"; print STDERR " apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...\n"; exit(1); } # option handling my $rc; ($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+W+S+eiaApv", @ARGV); &usage if ($rc == 0); &usage if ($#ARGV == -1 and not $opt_g and not $opt_q); &usage if (not $opt_q and not ($opt_g and $opt_n) and not $opt_i and not $opt_c and not $opt_e); # argument handling my @args = @ARGV; my $name = 'unknown'; $name = $opt_n if ($opt_n ne ''); if (@opt_S) { my ($opt_S); foreach $opt_S (@opt_S) { if ($opt_S =~ m/^([^=]+)=(.*)$/) { my ($var) = $1; my ($val) = $2; my $oldval = eval "\$CFG_$var"; unless ($var and $oldval) { print STDERR "apxs:Error: no config variable $var\n"; &usage; } eval "\$CFG_${var}=\"${val}\""; } else { print STDERR "apxs:Error: malformatted -S option\n"; &usage; } } } ## ## Initial shared object support check ## unless ("yes" eq "yes") { error("Sorry, no shared object support for Apache"); error("available under your platform. Make sure"); error("the Apache module mod_so is compiled into"); error("the server binary."); exit 1; } sub get_config_vars{ my ($file, $rh_config) = @_; open IN, $file or die "cannot open $file: $!"; while (<IN>){ if (/^\s*(.*?)\s*=\s*(.*)$/){ $rh_config->{$1} = $2; } } close IN; } sub get_vars { my $result = ''; my $ok = 0; my $arg; foreach $arg (@_) { if (exists $config_vars{$arg} or exists $config_vars{lc $arg}) { my $val = exists $config_vars{$arg} ? $config_vars{$arg} : $config_vars{lc $arg}; $val =~ s/[()]//g; $result .= eval "qq($val)" if defined $val; $result .= ";;"; $ok = 1; } if (not $ok) { if (exists $internal_vars{$arg} or exists $internal_vars{lc $arg}) { my $val = exists $internal_vars{$arg} ? $arg : lc $arg; $val = eval "\$CFG_$val"; $result .= eval "qq($val)" if defined $val; $result .= ";;"; $ok = 1; } if (not $ok) { error("Invalid query string `$arg'"); exit(1); } } } $result =~ s|;;$||; return $result; } ## ## Operation ## # helper function for executing a list of # system command with return code checks sub execute_cmds { my (@cmds) = @_; my ($cmd, $rc); foreach $cmd (@cmds) { notice($cmd); $rc = system $cmd; if ($rc) { error(sprintf "Command failed with rc=%d\n", $rc << 8); exit 1 ; } } } if ($opt_g) { ## ## SAMPLE MODULE SOURCE GENERATION ## if (-d $name) { error("Directory `$name' already exists. Remove first"); exit(1); } my $data = join('', <DATA>); $data =~ s|%NAME%|$name|sg; $data =~ s|%TARGET%|$CFG_TARGET|sg; $data =~ s|%PREFIX%|$prefix|sg; $data =~ s|%INSTALLBUILDDIR%|$installbuilddir|sg; my ($mkf, $mods, $src) = ($data =~ m|^(.+)-=#=-\n(.+)-=#=-\n(.+)|s); notice("Creating [DIR] $name"); system("mkdir $name"); notice("Creating [FILE] $name/Makefile"); open(FP, ">${name}/Makefile") || die; print FP $mkf; close(FP); notice("Creating [FILE] $name/modules.mk"); open(FP, ">${name}/modules.mk") || die; print FP $mods; close(FP); notice("Creating [FILE] $name/mod_$name.c"); open(FP, ">${name}/mod_${name}.c") || die; print FP $src; close(FP); notice("Creating [FILE] $name/.deps"); system("touch ${name}/.deps"); exit(0); } if ($opt_q) { ## ## QUERY INFORMATION ## my $result; if ($#args >= 0) { $result = get_vars(@args); print "$result\n"; } else { # -q without var name prints all variables and their values # Additional -v pretty-prints output if ($opt_v) { # Variable names in alphabetic order my @vars = sort {uc($a) cmp uc($b)} keys %config_vars; # Make the left column as wide as the longest variable name my $width = 0; foreach (@vars) { my $l = length $_; $width = $l unless ($l <= $width); } foreach (@vars) { printf "%-${width}s = %s\n", $_, $config_vars{$_}; } } else { # Unprettified name=value list foreach (keys %config_vars) { print "$_=$config_vars{$_}\n"; } } } } my $apr_config = $destdir . get_vars("APR_CONFIG"); if (! -x "$apr_config") { error("$apr_config not found!"); exit(1); } my $apr_major_version = (split /\./, `$apr_config --version`)[0]; my $apu_config = ""; if ($apr_major_version < 2) { $apu_config = $destdir . get_vars("APU_CONFIG"); if (! -x "$apu_config") { error("$apu_config not found!"); exit(1); } } my $libtool = `$apr_config --apr-libtool`; chomp($libtool); my $apr_includedir = `$apr_config --includes`; chomp($apr_includedir); my $apu_includedir = ""; if ($apr_major_version < 2) { $apu_includedir = `$apu_config --includes`; chomp($apu_includedir); } if ($opt_c) { ## ## SHARED OBJECT COMPILATION ## # split files into sources and objects my @srcs = (); my @objs = (); my $f; foreach $f (@args) { if ($f =~ m|\.c$|) { push(@srcs, $f); } else { push(@objs, $f); } } # determine output file my $dso_file; if ($opt_o eq '') { if ($#srcs > -1) { $dso_file = $srcs[0]; $dso_file =~ s|\.[^.]+$|.la|; } elsif ($#objs > -1) { $dso_file = $objs[0]; $dso_file =~ s|\.[^.]+$|.la|; } else { $dso_file = "mod_unknown.la"; } } else { $dso_file = $opt_o; $dso_file =~ s|\.[^.]+$|.la|; } # create compilation commands my @cmds = (); my $opt = ''; my ($opt_Wc, $opt_I, $opt_D); foreach $opt_Wc (@opt_W) { $opt .= "$1 " if ($opt_Wc =~ m|^\s*c,(.*)$|); } foreach $opt_I (@opt_I) { $opt .= "-I$opt_I "; } foreach $opt_D (@opt_D) { $opt .= "-D$opt_D "; } my $cflags = "$CFG_CFLAGS"; my $s; my $mod; foreach $s (@srcs) { my $slo = $s; $slo =~ s|\.c$|.slo|; my $lo = $s; $lo =~ s|\.c$|.lo|; my $la = $s; $la =~ s|\.c$|.la|; my $o = $s; $o =~ s|\.c$|.o|; push(@cmds, "$libtool $ltflags --mode=compile $CFG_CC $cflags -I$CFG_INCLUDEDIR $apr_includedir $apu_includedir $opt -c -o $lo $s && touch $slo"); unshift(@objs, $lo); } # create link command my $o; my $lo; foreach $o (@objs) { $lo .= " $o"; } my ($opt_Wl, $opt_L, $opt_l); $opt = ''; foreach $opt_Wl (@opt_W) { $opt .= "$1 " if ($opt_Wl =~ m|^\s*l,(.*)$|); } foreach $opt_L (@opt_L) { $opt .= " -L$opt_L"; } foreach $opt_l (@opt_l) { $opt .= " -l$opt_l"; } my $ldflags = "$CFG_LDFLAGS"; if ($opt_p == 1) { my $apr_libs=`$apr_config --cflags --ldflags --link-libtool --libs`; chomp($apr_libs); my $apu_libs=""; if ($apr_major_version < 2) { $apu_libs=`$apu_config --ldflags --link-libtool --libs`; chomp($apu_libs); } $opt .= " ".$apu_libs." ".$apr_libs; } else { my $apr_ldflags=`$apr_config --ldflags`; chomp($apr_ldflags); $opt .= " -rpath $CFG_LIBEXECDIR -module -avoid-version $apr_ldflags"; } push(@cmds, "$libtool $ltflags --mode=link $CFG_CC $ldflags -o $dso_file $opt $lo"); # execute the commands &execute_cmds(@cmds); # allow one-step compilation and installation if ($opt_i or $opt_e) { @args = ( $dso_file ); } } if ($opt_i or $opt_e) { ## ## SHARED OBJECT INSTALLATION ## # determine installation commands # and corresponding LoadModule directive my @lmd = (); my @cmds = (); my $f; foreach $f (@args) { # ack all potential gcc, hp/ux, win32+os2+aix and os/x extensions if ($f !~ m#(\.so$|\.la$|\.sl$|\.dll$|\.dylib$|)#) { error("file $f is not a shared object"); exit(1); } my $t = $f; $t =~ s|^.+/([^/]+)$|$1|; # use .so unambigiously for installed shared library modules $t =~ s|\.[^./\\]+$|\.so|; if ($opt_i) { push(@cmds, $destdir . "$installbuilddir/instdso.sh SH_LIBTOOL='" . "$libtool' $f $CFG_LIBEXECDIR"); push(@cmds, "chmod 755 $CFG_LIBEXECDIR/$t"); } # determine module symbolname and filename my $filename = ''; if ($name eq 'unknown') { $name = ''; my $base = $f; $base =~ s|\.[^.]+$||; if (-f "$base.c") { open(FP, "<$base.c"); my $content = join('', <FP>); close(FP); if ($content =~ m|.*AP_DECLARE_MODULE\s*\(\s*([a-zA-Z0-9_]+)\s*\)\s*=.*|s || $content =~ m|.*module\s+(?:AP_MODULE_DECLARE_DATA\s+)?([a-zA-Z0-9_]+)_module\s*=\s*.*|s) { $name = "$1"; $filename = "$base.c"; $filename =~ s|^[^/]+/||; } } if ($name eq '') { if ($base =~ m|.*mod_([a-zA-Z0-9_]+)\..+|) { $name = "$1"; $filename = $base; $filename =~ s|^[^/]+/||; } } if ($name eq '') { error("Sorry, cannot determine bootstrap symbol name"); error("Please specify one with option `-n'"); exit(1); } } if ($filename eq '') { $filename = "mod_${name}.c"; } my $dir = $CFG_LIBEXECDIR; $dir =~ s|^$CFG_PREFIX/?||; $dir =~ s|(.)$|$1/|; $t =~ s|\.la$|.so|; push(@lmd, sprintf("LoadModule %-18s %s", "${name}_module", "$dir$t")); } # execute the commands &execute_cmds(@cmds); # activate module via LoadModule/AddModule directive if ($opt_a or $opt_A) { if (not -f "$CFG_SYSCONFDIR/$CFG_TARGET.conf") { error("Config file $CFG_SYSCONFDIR/$CFG_TARGET.conf not found"); exit(1); } open(FP, "<$CFG_SYSCONFDIR/$CFG_TARGET.conf") || die; my $content = join('', <FP>); close(FP); if ($content !~ m|\n#?\s*LoadModule\s+|) { error("Activation failed for custom $CFG_SYSCONFDIR/$CFG_TARGET.conf file."); error("At least one `LoadModule' directive already has to exist."); exit(1); } my $lmd; my $c = ''; $c = '#' if ($opt_A); foreach $lmd (@lmd) { my $what = $opt_A ? "preparing" : "activating"; my $lmd_re = $lmd; $lmd_re =~ s/\s+/\\s+/g; if ($content !~ m|\n#?\s*$lmd_re|) { # check for open <containers>, so that the new LoadModule # directive always appears *outside* of an <container>. my $before = ($content =~ m|^(.*\n)#?\s*LoadModule\s+[^\n]+\n|s)[0]; # the '()=' trick forces list context and the scalar # assignment counts the number of list members (aka number # of matches) then my $cntopen = () = ($before =~ m|^\s*<[^/].*$|mg); my $cntclose = () = ($before =~ m|^\s*</.*$|mg); if ($cntopen == $cntclose) { # fine. Last LoadModule is contextless. $content =~ s|^(.*\n#?\s*LoadModule\s+[^\n]+\n)|$1$c$lmd\n|s; } elsif ($cntopen < $cntclose) { error('Configuration file is not valid. There are sections' . ' closed before opened.'); exit(1); } else { # put our cmd after the section containing the last # LoadModule. my $found = $content =~ s!\A ( # string and capture start (?:(?: ^\s* # start of conf line with a (?:[^<]|<[^/]) # directive which does not # start with '</' .*(?:$)\n # rest of the line. # the '$' is in parentheses # to avoid misinterpreting # the string "$\" as # perl variable. )* # catch as much as possible # of such lines. (including # zero) ^\s*</.*(?:$)\n? # after the above, we # expect a config line with # a closing container (</) ) {$cntopen} # the whole pattern (bunch # of lines that end up with # a closing directive) must # be repeated $cntopen # times. That's it. # Simple, eh? ;-) ) # capture end !$1$c$lmd\n!mx; unless ($found) { error('Configuration file is not valid. There are ' . 'sections opened and not closed.'); exit(1); } } } else { # replace already existing LoadModule line $content =~ s|^(.*\n)#?\s*$lmd_re[^\n]*\n|$1$c$lmd\n|s; } $lmd =~ m|LoadModule\s+(.+?)_module.*|; notice("[$what module `$1' in $CFG_SYSCONFDIR/$CFG_TARGET.conf]"); } if (@lmd) { if (open(FP, ">$CFG_SYSCONFDIR/$CFG_TARGET.conf.new")) { print FP $content; close(FP); system("cp $CFG_SYSCONFDIR/$CFG_TARGET.conf $CFG_SYSCONFDIR/$CFG_TARGET.conf.bak && " . "cp $CFG_SYSCONFDIR/$CFG_TARGET.conf.new $CFG_SYSCONFDIR/$CFG_TARGET.conf && " . "rm $CFG_SYSCONFDIR/$CFG_TARGET.conf.new"); } else { notice("unable to open configuration file"); } } } } sub error{ print STDERR "apxs:Error: $_[0].\n"; } sub notice{ print STDERR "$_[0]\n"; } ##EOF## __DATA__ ## ## Makefile -- Build procedure for sample %NAME% Apache module ## Autogenerated via ``apxs -n %NAME% -g''. ## builddir=. top_srcdir=%PREFIX% top_builddir=%PREFIX% include %INSTALLBUILDDIR%/special.mk # the used tools APACHECTL=apachectl # additional defines, includes and libraries #DEFS=-Dmy_define=my_value #INCLUDES=-Imy/include/dir #LIBS=-Lmy/lib/dir -lmylib # the default target all: local-shared-build # install the shared object file into Apache install: install-modules-yes # cleanup clean: -rm -f mod_%NAME%.o mod_%NAME%.lo mod_%NAME%.slo mod_%NAME%.la # simple test test: reload lynx -mime_header http://localhost/%NAME% # install and activate shared object by reloading Apache to # force a reload of the shared object file reload: install restart # the general Apache start/restart/stop # procedures start: $(APACHECTL) start restart: $(APACHECTL) restart stop: $(APACHECTL) stop -=#=- mod_%NAME%.la: mod_%NAME%.slo $(SH_LINK) -rpath $(libexecdir) -module -avoid-version mod_%NAME%.lo DISTCLEAN_TARGETS = modules.mk shared = mod_%NAME%.la -=#=- /* ** mod_%NAME%.c -- Apache sample %NAME% module ** [Autogenerated via ``apxs -n %NAME% -g''] ** ** To play with this sample module first compile it into a ** DSO file and install it into Apache's modules directory ** by running: ** ** $ apxs -c -i mod_%NAME%.c ** ** Then activate it in Apache's %TARGET%.conf file for instance ** for the URL /%NAME% in as follows: ** ** # %TARGET%.conf ** LoadModule %NAME%_module modules/mod_%NAME%.so ** <Location /%NAME%> ** SetHandler %NAME% ** </Location> ** ** Then after restarting Apache via ** ** $ apachectl restart ** ** you immediately can request the URL /%NAME% and watch for the ** output of this module. This can be achieved for instance via: ** ** $ lynx -mime_header http://localhost/%NAME% ** ** The output should be similar to the following one: ** ** HTTP/1.1 200 OK ** Date: Tue, 31 Mar 1998 14:42:22 GMT ** Server: Apache/1.3.4 (Unix) ** Connection: close ** Content-Type: text/html ** ** The sample page from mod_%NAME%.c */ #include "httpd.h" #include "http_config.h" #include "http_protocol.h" #include "ap_config.h" /* The sample content handler */ static int %NAME%_handler(request_rec *r) { if (strcmp(r->handler, "%NAME%")) { return DECLINED; } r->content_type = "text/html"; if (!r->header_only) ap_rputs("The sample page from mod_%NAME%.c\n", r); return OK; } static void %NAME%_register_hooks(apr_pool_t *p) { ap_hook_handler(%NAME%_handler, NULL, NULL, APR_HOOK_MIDDLE); } /* Dispatch list for API hooks */ module AP_MODULE_DECLARE_DATA %NAME%_module = { STANDARD20_MODULE_STUFF, NULL, /* create per-dir config structures */ NULL, /* merge per-dir config structures */ NULL, /* create per-server config structures */ NULL, /* merge per-server config structures */ NULL, /* table of config file commands */ %NAME%_register_hooks /* register hooks */ };