This pr is a duplicate of ports/87108, which doesn't have the shar.
This shar creates a raqdevil/ directory which is suitable
for addition in the FreeBSD ports tree.
From the pkg-descr:
RAQdevil is a web control panel application, developed by
OffMyServer and based upon the Sun Cobalt RaQ550 software.
The RAQdevil is software that provides web based management
of multiple aspects of a server. RAQdevil manages system
users, web sites, email, DNS, and other common server
components used for web hosting.
http://www.raqdevil.com/
I submitted a shar for 0.9 as well, but cannot find the
original report via the web interface. This shar supercedes
0.9.
PR: ports/87129
Submitted by: Devon H. O'Dell <dodell@offmyserver.com>
34 lines
648 B
C
34 lines
648 B
C
#include <sys/types.h>
|
|
#include <ufs/ufs/quota.h>
|
|
|
|
#include <err.h>
|
|
|
|
int
|
|
main (int argc, char **argv)
|
|
{
|
|
int retval;
|
|
struct dqblk dqb;
|
|
|
|
retval = quotactl("/", QCMD(Q_GETQUOTA, USRQUOTA), 0, &dqb);
|
|
if (retval != 0) {
|
|
err(-1, "No user quotas in /");
|
|
}
|
|
|
|
retval = quotactl("/", QCMD(Q_GETQUOTA, GRPQUOTA), 0, &dqb);
|
|
if (retval != 0) {
|
|
err(-1, "No group quotas in /");
|
|
}
|
|
|
|
retval = quotactl("/home", QCMD(Q_GETQUOTA, USRQUOTA), 0, &dqb);
|
|
if (retval != 0) {
|
|
err(-1, "No user quotas in /home");
|
|
}
|
|
|
|
retval = quotactl("/home", QCMD(Q_GETQUOTA, GRPQUOTA), 0, &dqb);
|
|
if (retval != 0) {
|
|
err(-1, "No group quotas in /home");
|
|
}
|
|
|
|
return 0;
|
|
}
|