diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbb3a13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.rpm +*.log +*spec-20* +*.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c594112 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: smeserver-nfs +# $Id: Makefile,v 1.1 2020/12/19 14:48:51 brianr Exp $ +NAME := smeserver-nfs +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index d092153..a1682da 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ -# smeserver-nfs +# smeserver-nfs -SMEServer Koozali developed git repo for smeserver-nfs smecontribs \ No newline at end of file +SMEServer Koozali developed git repo for smeserver-nfs smecontribs + +## Wiki +
https://wiki.koozali.org/NFS + +## Bugzilla +Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-nfs&product=SME%20Contribs&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED) + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
diff --git a/additional/CHANGELOG.git b/additional/CHANGELOG.git new file mode 100644 index 0000000..33d091d --- /dev/null +++ b/additional/CHANGELOG.git @@ -0,0 +1,125 @@ +commit 4ba893a810c878ff6bdf9c22cdde6e7faa230bf6 +Author: Stephane de Labrusse +Date: Sun Jan 4 22:03:57 2015 +0100 + + * Sun Jan 4 2015 stephane de Labrusse 1.2.0-8.sme + - The ownership and the user access of the Ibay are modifiable by the contrib + +commit 82246ed9b9f02b06a0ec01d8f59904151d1d089d +Author: Stephane de Labrusse +Date: Wed Dec 17 23:19:56 2014 +0100 + + * Mon Dec 15 2014 stephane de Labrusse 1.2.0-7.sme + - added a default db nfs-rules + - added an exception if nfs-rules is removed by the admin + +commit c45f9926da9fdebc346608a5928a00144165493a +Merge: 42c265b 1e816db +Author: Stephane de Labrusse +Date: Mon Dec 15 18:04:06 2014 +0100 + + Merge branch 'sme9_13122014' into sme9 + +commit 1e816db71ff27a9dd4b30109605ff2b29465014f +Author: Stephane de Labrusse +Date: Sun Dec 7 22:40:16 2014 +0100 + + * Mon Dec 15 2014 stephane de Labrusse 1.2.0-6.sme + - Added an event nfs-conf shorter for the server-manager + - Added a template /etc/exports/20CustomRules for manual settings + +commit 42c265b766d274b675626a62d6354b9032bab23e +Author: Stephane de Labrusse +Date: Sun Dec 7 22:40:16 2014 +0100 + + new translation en-us + +commit a67934c4fb69eadc9634afaaad7914e483d596d1 +Merge: c19a3b1 2c51406 +Author: Stephane de Labrusse +Date: Sun Dec 7 22:26:34 2014 +0100 + + merge sme9-devel + +commit 2c51406adb31670d00aa98cec1a28a8432bd3cf5 +Author: Stephane de Labrusse +Date: Sat Dec 6 23:50:41 2014 +0100 + + * Sun Dec 7 2014 stephane de Labrusse 1.2.0-5.sme + - added a template of hosts.allow + - added restart nfslock/rpcbind to remoteaccess-update & nfs-update + - display Group description and permissions from ibay account in nfs panel + - added a textarea box for ip of nfsclient + - display status of nfs share in the main panel + +commit c19a3b14a4ebf34e6b6b23bbd78f921f580f2abc +Author: Stephane de Labrusse +Date: Sat Dec 6 23:50:41 2014 +0100 + + * Sun Dec 7 2014 stephane de Labrusse 1.2.0-5.sme + - added a template of hosts.allow + - added restart nfslock/rpcbind to remoteaccess-update & nfs-update + - display Group description and permissions from ibay account in nfs panel + +commit 92bdd5cbfd760f395f6fcf4475c77d9a6f09b664 +Author: Stephane de Labrusse +Date: Wed Nov 26 21:22:18 2014 +0100 + + * Tue Dec 6 2014 stephane de Labrusse 1.2.0-4.sme + - Added a panel with en-us locale and validator + +commit 808138331dc537a59103d1e62a75a1064b9bad1e +Author: Stephane de Labrusse +Date: Wed Nov 26 18:31:22 2014 +0100 + + * Tue Nov 25 2014 stephane de Labrusse 1.2.0-3.sme + - Added nfs4-acl-tools for nfsv4 dependency + - Added a template to /etc/exports + - Added a specific event nfs-update + +commit df6fa81d1707ee5fc282127fdfef4310f9abb26a +Author: Stephane de Labrusse +Date: Wed Nov 26 18:24:58 2014 +0100 + + * Tue Nov 25 2014 stephane de Labrusse 1.2.0-3.sme + - Added nfs4-acl-tools for nfsv4 dependency + - Added a template to /etc/exports + - Added a specific event nfs-update + +commit 2f3dc7fbf407d62e72c4a0e9a3e3ec56684abfc7 +Author: Stephane de Labrusse +Date: Tue Nov 25 22:03:26 2014 +0100 + + removed smeserver-nfs-1.0.0-1-filelist + +commit 2481f6040bc58f915b54710979d84fb7f2368313 +Author: Stephane de Labrusse +Date: Mon Nov 24 23:29:03 2014 +0100 + + added service enabled by default + +commit 09795d259f64fcab05ca5cf27e92eeaa3ff47116 +Author: Stephane de Labrusse +Date: Mon Nov 24 15:11:14 2014 +0100 + + * Mon Nov 24 2014 stephane de Labrusse 1.2.0-2.sme + - removed portmap to rpcbind in r7.d + +commit e0a4eb5f5938b9ac83d1d9a7679ebacf88146fdf +Author: Stephane de Labrusse +Date: Mon Nov 24 15:08:04 2014 +0100 + + * Mon Nov 24 2014 stephane de Labrusse 1.2.0-2.sme + - removed portmap to rpcbind in r7.d + +commit 83e3beda1bb583db18d31687e9d45445dfe833d5 +Author: Stephane de Labrusse +Date: Tue Sep 16 16:16:50 2014 +0200 + + first release to sme9 + +commit fabbfca84c3cc2542e147f1872af755831987a90 +Author: Stephane de Labrusse +Date: Tue Sep 16 15:16:03 2014 +0200 + + first commit to SME Server 9 diff --git a/additional/COPYING b/additional/COPYING new file mode 100644 index 0000000..eeb586b --- /dev/null +++ b/additional/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) 19yy + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/additional/README.md b/additional/README.md new file mode 100644 index 0000000..a0f7dfa --- /dev/null +++ b/additional/README.md @@ -0,0 +1 @@ +smeserver-nfs is a contrib for SME Server, a Linux distro oriented server. see http://wiki.contribs.org diff --git a/additional/smeserver-nfs.spec b/additional/smeserver-nfs.spec new file mode 100644 index 0000000..e759f68 --- /dev/null +++ b/additional/smeserver-nfs.spec @@ -0,0 +1,92 @@ +# $Id: smeserver-nfs.spec,v 1.1 2013/03/03 05:41:38 unnilennium Exp $ +# Authority: slords +# Name: Shad L. Lords + +Summary: smeserver - configure nfs server +%define name smeserver-nfs +Name: %{name} +%define version 1.2.0 +%define release 8 +Version: %{version} +Release: %{release}%{?dist} +License: GPL +Group: Networking/Daemons +Source: %{name}-%{version}.tar.gz +BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot +Requires: e-smith-base +Requires: smeserver-release >= 9 +Requires: nfs-utils +Requires: nfs4-acl-tools +Requires: e-smith-lib +Requires: e-smith-packetfilter +BuildRequires: e-smith-devtools +BuildArchitectures: noarch + +%description +e-smith server and gateway - configure nfs server + +%changelog +* Sun Jan 4 2015 stephane de Labrusse 1.2.0-8.sme +- The ownership and the user access of the Ibay are modifiable by the contrib + +* Mon Dec 15 2014 stephane de Labrusse 1.2.0-7.sme +- added a default db nfs-rules +- added an exception if nfs-rules is removed by the admin + +* Mon Dec 15 2014 stephane de Labrusse 1.2.0-6.sme +- Added an event nfs-conf shorter for the server-manager +- Added a template /etc/exports/20CustomRules for manual settings + +* Sun Dec 7 2014 stephane de Labrusse 1.2.0-5.sme +- added a template of hosts.allow +- added restart nfslock/rpcbind to remoteaccess-update & nfs-update +- display Group description and permissions from ibay account in nfs panel +- added a textarea box for ip of nfsclient +- display status of nfs share in the main panel + +* Sat Dec 6 2014 stephane de Labrusse 1.2.0-4.sme +- Added a panel with en-us locale and validator + +* Tue Nov 25 2014 stephane de Labrusse 1.2.0-3.sme +- Added nfs4-acl-tools for nfsv4 dependency +- Added a template to /etc/exports +- Added a specific event nfs-update + +* Mon Nov 24 2014 stephane de Labrusse 1.2.0-2.sme +- removed portmap to rpcbind in r7.d + +* Tue Sep 16 2014 stephane de Labrusse 1.2.0-1.sme +- Initial release to sme9 + +* Sun Apr 29 2007 Shad L. Lords +- Clean up spec so package can be built by koji/plague + +* Thu Dec 07 2006 Shad L. Lords +- Update to new release naming. No functional changes. +- Make Packager generic + +* Mon Jan 30 2006 Shad L. Lords +- initial + +%prep +%setup + +%build +perl createlinks + +%install +rm -rf $RPM_BUILD_ROOT +(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +rm -f %{name}-%{version}-%{release}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ + > %{name}-%{version}-%{release}-filelist +echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist + +%postun + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}-%{version}-%{release}-filelist +%defattr(-,root,root) + diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..9b7fd51 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +contribs10 diff --git a/createlinks b/createlinks new file mode 100644 index 0000000..d412eff --- /dev/null +++ b/createlinks @@ -0,0 +1,78 @@ +#!/usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); + +# our event specific for updating with yum without reboot +$event = "smeserver-nfs-update"; +#add here the path to your templates needed to expand +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event + +foreach my $file (qw( + /etc/systemd/system-preset/49-koozali.preset + /etc/exports + /etc/hosts.allow +)) +{ + templates2events( $file, $event ); +} + +#action needed in case we have a systemd unit +event_link("systemd-default", $event, "88"); +event_link("systemd-reload", $event, "89"); + +#action specific to this package +#event_link("nfs-update", $event, "60"); +#services we need to restart +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/nfs"); + + +#-------------------------------------------------- +## functions for manager panel +##-------------------------------------------------- +panel_link("nfsshare", "manager"); + + +foreach (qw(sysconfig/nfs exports hosts.allow)) +{ + templates2events("/etc/$_", qw( + console-save + bootstrap-console-save + remoteaccess-update + nfs-update + )); +} +#add this event for change /etc/exports with new local network +foreach (qw(exports)) +{ + templates2events("/etc/$_", qw( + network-create + )); +} + +foreach $event (qw(remoteaccess-update nfs-update network-create)) +{ + safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/nfslock"); + safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/nfs"); +} + +#The service rpcbind needs to be restarted before nfs service, +#but sometime it start before so I had to do a specific action +for my $event (qw(remoteaccess-update nfs-update network-create)) +{ + event_link("smeserver-nfs-restart-rpcbind", $event, "05"); +} + +$event="nfs-update"; +templates2events("/etc/hosts.allow", $event); + +#here a specific event only for the server-manager, nfs-update is an event a bit long +foreach $event (qw(nfs-conf)) +{ + safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/nfs"); + templates2events("/etc/exports", $event); + templates2events("/etc/hosts.allow", $event); +} + +#service_link_enhanced("rpcbind", "S13", "7"); +#service_link_enhanced("nfslock", "S59", "7"); +#service_link_enhanced("nfs", "S60", "7"); diff --git a/root/etc/e-smith/db/configuration/defaults/nfs-rules/type b/root/etc/e-smith/db/configuration/defaults/nfs-rules/type new file mode 100644 index 0000000..f92f363 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfs-rules/type @@ -0,0 +1 @@ +configuration diff --git a/root/etc/e-smith/db/configuration/defaults/nfs/TCPPorts b/root/etc/e-smith/db/configuration/defaults/nfs/TCPPorts new file mode 100644 index 0000000..75568e6 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfs/TCPPorts @@ -0,0 +1 @@ +2049,4002,4003 diff --git a/root/etc/e-smith/db/configuration/defaults/nfs/UDPPorts b/root/etc/e-smith/db/configuration/defaults/nfs/UDPPorts new file mode 100644 index 0000000..75568e6 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfs/UDPPorts @@ -0,0 +1 @@ +2049,4002,4003 diff --git a/root/etc/e-smith/db/configuration/defaults/nfs/access b/root/etc/e-smith/db/configuration/defaults/nfs/access new file mode 100644 index 0000000..3e18ebf --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfs/access @@ -0,0 +1 @@ +private diff --git a/root/etc/e-smith/db/configuration/defaults/nfs/mountdPort b/root/etc/e-smith/db/configuration/defaults/nfs/mountdPort new file mode 100644 index 0000000..0f254fd --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfs/mountdPort @@ -0,0 +1 @@ +4002 diff --git a/root/etc/e-smith/db/configuration/defaults/nfs/rquotadPort b/root/etc/e-smith/db/configuration/defaults/nfs/rquotadPort new file mode 100644 index 0000000..2077469 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfs/rquotadPort @@ -0,0 +1 @@ +4003 diff --git a/root/etc/e-smith/db/configuration/defaults/nfs/status b/root/etc/e-smith/db/configuration/defaults/nfs/status new file mode 100644 index 0000000..86981e6 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfs/status @@ -0,0 +1 @@ +enabled diff --git a/root/etc/e-smith/db/configuration/defaults/nfs/type b/root/etc/e-smith/db/configuration/defaults/nfs/type new file mode 100644 index 0000000..24e1098 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfs/type @@ -0,0 +1 @@ +service diff --git a/root/etc/e-smith/db/configuration/defaults/nfslock/TCPPorts b/root/etc/e-smith/db/configuration/defaults/nfslock/TCPPorts new file mode 100644 index 0000000..1d37992 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfslock/TCPPorts @@ -0,0 +1 @@ +4000,4001,4004 diff --git a/root/etc/e-smith/db/configuration/defaults/nfslock/UDPPorts b/root/etc/e-smith/db/configuration/defaults/nfslock/UDPPorts new file mode 100644 index 0000000..1d37992 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfslock/UDPPorts @@ -0,0 +1 @@ +4000,4001,4004 diff --git a/root/etc/e-smith/db/configuration/defaults/nfslock/access b/root/etc/e-smith/db/configuration/defaults/nfslock/access new file mode 100644 index 0000000..3e18ebf --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfslock/access @@ -0,0 +1 @@ +private diff --git a/root/etc/e-smith/db/configuration/defaults/nfslock/lockdPort b/root/etc/e-smith/db/configuration/defaults/nfslock/lockdPort new file mode 100644 index 0000000..721b0f7 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfslock/lockdPort @@ -0,0 +1 @@ +4001 diff --git a/root/etc/e-smith/db/configuration/defaults/nfslock/statdOutgoingPort b/root/etc/e-smith/db/configuration/defaults/nfslock/statdOutgoingPort new file mode 100644 index 0000000..02e028d --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfslock/statdOutgoingPort @@ -0,0 +1 @@ +4004 diff --git a/root/etc/e-smith/db/configuration/defaults/nfslock/statdPort b/root/etc/e-smith/db/configuration/defaults/nfslock/statdPort new file mode 100644 index 0000000..26a4dd3 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfslock/statdPort @@ -0,0 +1 @@ +4000 diff --git a/root/etc/e-smith/db/configuration/defaults/nfslock/status b/root/etc/e-smith/db/configuration/defaults/nfslock/status new file mode 100644 index 0000000..86981e6 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfslock/status @@ -0,0 +1 @@ +enabled diff --git a/root/etc/e-smith/db/configuration/defaults/nfslock/type b/root/etc/e-smith/db/configuration/defaults/nfslock/type new file mode 100644 index 0000000..24e1098 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/nfslock/type @@ -0,0 +1 @@ +service diff --git a/root/etc/e-smith/db/configuration/defaults/rpcbind/TCPPort b/root/etc/e-smith/db/configuration/defaults/rpcbind/TCPPort new file mode 100644 index 0000000..58c9bdf --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/rpcbind/TCPPort @@ -0,0 +1 @@ +111 diff --git a/root/etc/e-smith/db/configuration/defaults/rpcbind/UDPPort b/root/etc/e-smith/db/configuration/defaults/rpcbind/UDPPort new file mode 100644 index 0000000..58c9bdf --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/rpcbind/UDPPort @@ -0,0 +1 @@ +111 diff --git a/root/etc/e-smith/db/configuration/defaults/rpcbind/access b/root/etc/e-smith/db/configuration/defaults/rpcbind/access new file mode 100644 index 0000000..3e18ebf --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/rpcbind/access @@ -0,0 +1 @@ +private diff --git a/root/etc/e-smith/db/configuration/defaults/rpcbind/status b/root/etc/e-smith/db/configuration/defaults/rpcbind/status new file mode 100644 index 0000000..86981e6 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/rpcbind/status @@ -0,0 +1 @@ +enabled diff --git a/root/etc/e-smith/db/configuration/defaults/rpcbind/type b/root/etc/e-smith/db/configuration/defaults/rpcbind/type new file mode 100644 index 0000000..24e1098 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/rpcbind/type @@ -0,0 +1 @@ +service diff --git a/root/etc/e-smith/events/actions/smeserver-nfs-restart-rpcbind b/root/etc/e-smith/events/actions/smeserver-nfs-restart-rpcbind new file mode 100644 index 0000000..6832a4c --- /dev/null +++ b/root/etc/e-smith/events/actions/smeserver-nfs-restart-rpcbind @@ -0,0 +1,4 @@ +#!/usr/bin/perl +#The service rpcbind needs to be restarted before nfs service, +##but sometime it start before so I had to do a specific action +system ('/usr/bin/systemctl restart rpcbind.service') ==0 or die "Error to restart the rpcbind service : $?"; diff --git a/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..ceea96e --- /dev/null +++ b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + Добавка за NFS Share + + +nfsshare +Инфо слотове - NFS Share + + + FIRSTPAGE_DESC + Управление на настройките на инфо слот за NFS. + + + ADD_TITLE + Управление на настройките на инфо слот за NFS. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Име на инфо слота. + + + NO_IBAYS + Няма конфигурирани инфо слотове в момента. + + + CANT_FIND_IBAY + Не може да се намери акаунт за {$name} (съществува ли?) + + + ERROR_WHILE_MODIFYING_IBAY + Възникна грешка при промяна на инфо слота. + + + SUCCESSFULLY_MODIFIED_IBAY + Успешно променен инфо слот. + + + Information bays + Информационни слотове + + + DESC_ANONUIDGID + Задайте UID и GID ако искате всички заявки да изглеждат като направени от един потребител или една група, иначе го оставете празно. + + + NFSSTATUS + Включване на NFS Share. + + + DESC_NFSCLIENT + За права за писане, позволяването на root потребителя и използването на несигурни портове трябва да конфигурирате списък от IP адреси, по един наред, които са част от локалната мрежа(и). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + Трябва да зададете IP адрес(и), които са част от локалната мрежа. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + Трябва да зададете реални IP адрес(и), които са част от локалната мрежа. + + + ENABLE_LOCALNETWORK + Споделяне в локалната мрежа. + + + NFSCLIENT + Разрешени NFS клиенти. + + + NFSRW + Права във файловата система. + + + RO + Само за четене + + + RW + Четене и запис + + + NFSSYNC + Записване (а)синхронно. + + + SYNC + синхронно + + + ASYNC + асинхронно + + + NFSDELAY + Закъснение на записа върху диска. + + + WDELAY + забавено писане + + + + NO_WDELAY + без забавено писане + + + NFSSQUASH + Редукция на правата на потребителите. + + + ROOT_SQUASH + редукция за root + + + NO_ROOT_SQUASH + без редукция за root + + + ALL_SQUASH + редукция за всички потребители + + + NFSANONUID + Задаване на UID. + + + NFSANONGID + Задаване на GID. + + + NFSHIDE + Разглеждане на папките от горно ниво. + + + HIDE + скрий папката + + + NOHIDE + без скриване на папката + + + NFSSECURE + Заявки по сигурни портове. + + + SECURE + сигурни + + + INSECURE + несигурни + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + GID трябва да положително цяло число по-малко от 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + UID трябва да положително цяло число по-малко от 4,294,967,295 + + + WGRG + Писане = група, Четене = група + + + WGRE + Писане = група, Четене = всеки + + + WARG + Писане = админ, Четене = група + + + GROUP_LABEL + Споделяне на групата на собственика. + + + USERACCESS_LABEL + Права за инфо слота. + + + EVERYONE + Всеки + + + NFS_IS_ENABLED + Статус на NFS + + + USER_ACCESS + Достъп чрез споделени файлове. + + + diff --git a/root/etc/e-smith/locale/da/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..9381d23 --- /dev/null +++ b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Administrer NFS ibay indstillinger. + + + ADD_TITLE + Administrer NFS ibay indstillinger. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Informations bay navn. + + + NO_IBAYS + Der er pt ikke konfiguret nogen I-bay. + + + CANT_FIND_IBAY + Kan ikke finde konto for {$name} (eksisterer den?) + + + ERROR_WHILE_MODIFYING_IBAY + Der opstod en fejl under redigering af i-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Ændring af I-bay er gennemført med succes. + + + Information bays + Information bays + + + DESC_ANONUIDGID + Sæt UID og GID hvis du ønsker at alle forespørgsler vises som kommende fra én bruger eller én gruppe, ellers efterlad blank + + + NFSSTATUS + Aktiver NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS klient(er) tilladt. + + + NFSRW + Fil system tilladelser. + + + RO + Kun læsbar + + + RW + Læse og skrive + + + NFSSYNC + Skrive (a)synkront. + + + SYNC + synkront + + + ASYNC + asynkron + + + NFSDELAY + Forsinker skrivning til disk. + + + WDELAY + skrivnings forsinkelse + + + + NO_WDELAY + Ingen skrivnings forsinkelse + + + NFSSQUASH + Reducer brugernes rettigheder. + + + ROOT_SQUASH + Reducer remote root users rettigheder + + + NO_ROOT_SQUASH + undlad at reducere remote root brugeres rettigheder + + + ALL_SQUASH + reducer alle brugeres rettigheder + + + NFSANONUID + Sæt UID. + + + NFSANONGID + Sæt GID. + + + NFSHIDE + Gennemse overliggende mapper. + + + HIDE + skjul mappe + + + NOHIDE + skjul ikke mappe + + + NFSSECURE + Anmodning om sikre porte. + + + SECURE + sikker + + + INSECURE + usikker + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + GID skal være et positivt helttal mindre end 4.294.967.295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + UID skal være et positivt helttal mindre end 4.294.967.295 + + + WGRG + Skrive = gruppe, Læse = gruppe + + + WGRE + Skrive = gruppe, Læse = alle + + + WARG + Skrive = admin, Læse = gruppe + + + GROUP_LABEL + Share ejer gruppe. + + + USERACCESS_LABEL + I-bay tilladelser. + + + EVERYONE + Alle + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Adgang via fil deling. + + + diff --git a/root/etc/e-smith/locale/de/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..fef02ee --- /dev/null +++ b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + Contrib für NFS-Freigaben + + +nfsshare +I-bays - NFS-Freigabe + + + FIRSTPAGE_DESC + NFS-Ibay-Einstellungen verwalten + + + ADD_TITLE + NFS-Ibay-Einstellungen verwalten + + + NAME_FIELD_DESC + + + + NAME_LABEL + Name der I-Bay. + + + NO_IBAYS + Zur Zeit sind keine I-Bays konfiguriert. + + + CANT_FIND_IBAY + Kann keinen Account für {$name} finden (existiert er überhaupt?) + + + ERROR_WHILE_MODIFYING_IBAY + Beim Ändern der I-Bay ist ein Fehler aufgetreten. + + + SUCCESSFULLY_MODIFIED_IBAY + Die I-Bay wurde erfolgreich geändert. + + + Information bays + i-bays + + + DESC_ANONUIDGID + Setzen Sie eine UID und GID, wenn Sie möchten dass alle Zugriffe mit den Berechtigungen eines bestimmten Benutzers oder einer bestimmten Gruppe ausgeführt werden sollen. Andernfalls lassen Sie die Felder leer. + + + NFSSTATUS + NFS-Freigabe aktivieren. + + + DESC_NFSCLIENT + Um Schreibzugriff für den root-Benutzer und über unsichere Ports zu ermöglichen müssen Sie eine Liste von IP-Adressen aus dem/n lokalen Netzwerk/en angeben (eine Adresse pro Zeile). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + Sie müssen IP(s) aus Ihrem lokalen Netzwerk verwenden. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + Sie müssen real existierende IP(s) aus Ihrem lokalen Netzwerk verwenden. + + + ENABLE_LOCALNETWORK + Freigeben im lokalen Netzwerk. + + + NFSCLIENT + Berechtigte NFS-Client(s) + + + NFSRW + Dateisystem-Zugriffsrechte + + + RO + Nur lesen + + + RW + Lesen und Schreiben + + + NFSSYNC + (A)synchroner Schreibzugriff + + + SYNC + synchron + + + ASYNC + asynchron + + + NFSDELAY + HDD-Schreibzugriffe verzögern. + + + WDELAY + Schreibverzögerung (write delay) + + + + NO_WDELAY + keine Schreibverzögerung (no write delay) + + + NFSSQUASH + Benutzerrechte squashen. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + UID setzen. + + + NFSANONGID + GID setzen. + + + NFSHIDE + Auf übergeordnete Verzeichnisse zugreifen + + + HIDE + Verzeichnis verstecken (hide folder) + + + NOHIDE + Verzeichnis anzeigen (nohide folder) + + + NFSSECURE + Anfragen über sichere Ports. + + + SECURE + sicher + + + INSECURE + unsicher + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + Die GID muss eine positive Ganzzahl kleiner als 4,294,967,295 sein + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + Die UID muss eine positive Ganzzahl kleiner als 4,294,967,295 sein + + + WGRG + Schreiben = Gruppe, Lesen = Gruppe + + + WGRE + Schreiben = Gruppe, Lesen = jeder + + + WARG + Schreiben = admin, Lesen = Gruppe + + + GROUP_LABEL + Gruppe, der die Freigabe gehört. + + + USERACCESS_LABEL + I-Bay-Berechtigungen + + + EVERYONE + Jeder + + + NFS_IS_ENABLED + NFS-Status + + + USER_ACCESS + Zugriff über Freigabe. + + + diff --git a/root/etc/e-smith/locale/el/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..7065195 --- /dev/null +++ b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + Δεν βρίσκω λογαριασμο για {$name} (μήπως δεν υπάρχει;) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + I-bays + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Εγγραφή = ομάδα, ανάγνωση = ομάδα + + + WGRE + Εγγραφή = ομάδα, ανάγνωση = όλοι + + + WARG + Εγγραφή = admin, ανάγνωση = ομάδα + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Όλοι + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..db45f0b --- /dev/null +++ b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,281 @@ + + + FORM_TITLE + + NFS Share Contrib + + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + + Manage NFS Ibay settings. + + + + ADD_TITLE + + Manage NFS Ibay settings. + + + + NAME_FIELD_DESC + + + + + + NAME_LABEL + + Information bay name. + + + + NO_IBAYS + + There are no I-bays currently configured. + + + + CANT_FIND_IBAY + + Can't find account for {$name} (does it exist?) + + + + ERROR_WHILE_MODIFYING_IBAY + + An error occurred while modifying the I-bay. + + + + SUCCESSFULLY_MODIFIED_IBAY + + Successfully modified I-bay. + + + + Information bays + Information bays + + + DESC_ANONUIDGID + + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + + NFSSTATUS + + Enable the NFS Share. + + + + DESC_NFSCLIENT + + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + + You must set IP(s) being part of your local network. + + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + + You must set real IP(s) being part of your local network. + + + + ENABLE_LOCALNETWORK + + Share on local network. + + + + NFSCLIENT + + NFS Client(s) allowed. + + + + NFSRW + + File system permissions. + + + + RO + + Read Only + + + + RW + + Read and Write + + + + NFSSYNC + + Write (a)synchronously. + + + + SYNC + + synchronous + + + + ASYNC + + asynchronous + + + + NFSDELAY + + Delays the disk writings. + + + + WDELAY + + write delay + + + + + NO_WDELAY + + no write delay + + + + NFSSQUASH + + Squash the power of users. + + + + ROOT_SQUASH + + root squash + + + + NO_ROOT_SQUASH + + no root squash + + + + ALL_SQUASH + + all users squash + + + + NFSANONUID + + Set the UID. + + + + NFSANONGID + + Set the GID. + + + + NFSHIDE + + Browse the parent folders. + + + + HIDE + + hide folder + + + + NOHIDE + + nohide folder + + + + NFSSECURE + + Requests on secure ports. + + + + SECURE + + secure + + + + INSECURE + + insecure + + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + + The GID has to be a positive integer inferior at 4,294,967,295 + + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + + The UID has to be a positive integer inferior at 4,294,967,295 + + + + WGRG + Write = group, Read = group + + + WGRE + Write = group, Read = everyone + + + WARG + Write = admin, Read = group + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Everyone + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + + Access via file sharing. + + + + + diff --git a/root/etc/e-smith/locale/es/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..1752431 --- /dev/null +++ b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + No se puede encontrar la cuenta de {$name} (¿existe?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + Bahías de información + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asíncrona + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + seguro + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Escritura = grupo, Lectura = grupo + + + WGRE + Escritura = grupo, Lectura = todos + + + WARG + Escritura = admin, Lectura = grupo + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Todos + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/et/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..1bb0f2b --- /dev/null +++ b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + Ei leia kontot {$name} (on see üldse olemas?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + I-bay-d + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Write = group, Read = group + + + WGRE + Write = group, Read = everyone + + + WARG + Write = admin, Read = group + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Everyone + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..e717fc1 --- /dev/null +++ b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + Contribution Partage NFS + + +nfsshare +I-bays - Partage NFS + + + FIRSTPAGE_DESC + Configurer les paramètres NFS de l'I-bay. + + + ADD_TITLE + Configurer les paramètres NFS de l'I-bay. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Nom de l'i-bay + + + NO_IBAYS + Il n'y a pas d'Ibay existante actuellement. + + + CANT_FIND_IBAY + Compte introuvable pour {$name} (existe-t'il ?) + + + ERROR_WHILE_MODIFYING_IBAY + Une erreur est survenue durant la modification de l'I-bay + + + SUCCESSFULLY_MODIFIED_IBAY + I-bay modifiée avec succès. + + + Information bays + I-bays + + + DESC_ANONUIDGID + Configurer les UID et GID si vous voulez que toutes les requêtes apparaissent venant d'un usager ou d'un groupe, autrement laisser vide. + + + NFSSTATUS + Activer le Partage NFS. + + + DESC_NFSCLIENT + Pour les permissions d’écriture, autoriser l'usager root et utiliser un port non sécurisé, vous devez configurer une liste d’adresse IP (une seule par ligne), faisant partie du (des) réseau(x) local (locaux). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + Vous devez configurer une (des) adresse(s) IP faisant partie du réseau local. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + Vous devez configurer une vraie adresse IP(s) faisant partie du réseau local. + + + ENABLE_LOCALNETWORK + Partage sur le réseau local. + + + NFSCLIENT + Client(s) NFS autorisé(s) + + + NFSRW + Permissions du système de fichier. + + + RO + Lecture Seule + + + RW + Lecture et écriture + + + NFSSYNC + Écriture (dé)synchronisée. + + + SYNC + synchronisé + + + ASYNC + désynchronisé + + + NFSDELAY + Différer les écritures disque. + + + WDELAY + écriture différée + + + + NO_WDELAY + pas d'écriture différée + + + NFSSQUASH + Supprime les droits utilisateurs. + + + ROOT_SQUASH + supprime le root + + + NO_ROOT_SQUASH + autoriser root + + + ALL_SQUASH + Supprimer tous les usagers + + + NFSANONUID + Configurer les UID + + + NFSANONGID + Configurer les GID + + + NFSHIDE + Explorer le répertoire parent. + + + HIDE + Cacher le dossier + + + NOHIDE + ne pas cacher le dossier + + + NFSSECURE + Demande sur les ports sécurisés + + + SECURE + sécurisé + + + INSECURE + non sécure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + Le GID doit être un nombre entier positif inférieur a 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + Le UID doit être un nombre entier positif inférieur a 4,294,967,295 + + + WGRG + Écriture=Groupe, Lecture=Groupe + + + WGRE + Écriture=Groupe, Lecture=Tous + + + WARG + Écriture=Admin, Lecture=Groupe + + + GROUP_LABEL + Partager le groupe propriétaire. + + + USERACCESS_LABEL + Permissions de l'i-bay + + + EVERYONE + Tout le monde + + + NFS_IS_ENABLED + Statuts NFS + + + USER_ACCESS + Accéder via le partages de fichiers + + + diff --git a/root/etc/e-smith/locale/he/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..8690362 --- /dev/null +++ b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + לא ניתן למצוא חשבון עבור {$name} (האם הוא קיים ?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + מפרצי מידע + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + כתיבה = group, קריאה = group + + + WGRE + כתיבה = group, קריאה = everyone + + + WARG + כתיבה = admin, קריאה = group + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Everyone + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..7b51a35 --- /dev/null +++ b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + A {$name} névhez nem található felhasználói fiók (létezik?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + Adattárak + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Irás = csoport, Olvasás = csoport + + + WGRE + Irás = csoport, Olvasás = mindenki + + + WARG + Írás = admin, Olvasás = csoport + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Mindenki + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/id/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..1a22df9 --- /dev/null +++ b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + Tidak ditemukan akun {$name} (apakah benar ada?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + Information bays + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Write = group, Read = group + + + WGRE + Write = group, Read = everyone + + + WARG + Write = admin, Read = group + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Semua user + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/it/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..bc74667 --- /dev/null +++ b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + Contrib NFS Share + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Gestire le impostazioni NFS della I-bay + + + ADD_TITLE + Gestire le impostazioni NFS della I-bay + + + NAME_FIELD_DESC + + + + NAME_LABEL + Nome I-bay + + + NO_IBAYS + Non ci sono I-bay attualmente configurate. + + + CANT_FIND_IBAY + Impossibile trovare l'account per {$name} (esiste?) + + + ERROR_WHILE_MODIFYING_IBAY + Si è verificato un errore modificando la I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + I-bay modificata con successo. + + + Information bays + i-bay + + + DESC_ANONUIDGID + Impostare UID e GID se si desidera che ogni richiesta compaia come proveniente da un utente o da un gruppo, altrimenti lasciare vuoto. + + + NFSSTATUS + Abilita la condivisione NFS. + + + DESC_NFSCLIENT + Per i permessi di scrittura, abilitando l'utente root e consentendo porte non-secure, deve essere inserita una lista di indirizzi IP della rete locale, uno per riga. + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + Si devono inserire gli IP parte della rete locale del server. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + Si devono inserire gli IP reali parte della rete locale del server. + + + ENABLE_LOCALNETWORK + Condivisione sulla rete locale. + + + NFSCLIENT + NFS Client consentiti. + + + NFSRW + Permessi sul file system. + + + RO + Sola lettura + + + RW + Lettura e scrittura + + + NFSSYNC + Scrittura in modalità (a)sincrona + + + SYNC + sincrono + + + ASYNC + asincrono + + + NFSDELAY + Ritarda la scrittura su disco + + + WDELAY + Ritardo scrittura + + + + NO_WDELAY + Nessun ritardo scrittura + + + NFSSQUASH + Schiacciare i diritti degli utenti (squash). + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Imposta UID + + + NFSANONGID + Imposta GID + + + NFSHIDE + Sfoglia le cartelle principali + + + HIDE + nasconde cartella + + + NOHIDE + non nasconde cartella + + + NFSSECURE + Richieste sulle porte "secure" + + + SECURE + secure + + + INSECURE + non secure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + GID deve essere un intero positivo minore di 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + UID deve essere un intero positivo minore di 4,294,967,295 + + + WGRG + Scrittura = gruppo, Lettura = gruppo + + + WGRE + Scrittura = gruppo, Lettura = tutti + + + WARG + Scrittura = admin, Lettura = gruppo + + + GROUP_LABEL + Gruppo proprietario condivisione. + + + USERACCESS_LABEL + Permessi I-bay. + + + EVERYONE + Tutti + + + NFS_IS_ENABLED + Stato NFS + + + USER_ACCESS + Accesso tramite file sharing + + + diff --git a/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..23e203d --- /dev/null +++ b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + Can't find account for {$name} (does it exist?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + Information bays + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Write = group, Read = group + + + WGRE + Write = group, Read = everyone + + + WARG + Write = admin, Read = group + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Everyone + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..506f50d --- /dev/null +++ b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + Kan ikke finne en konto for {$name} (eksisterer det?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + Informasjonsgrupper + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Skrive = gruppe, Lese = gruppe + + + WGRE + Skrive = gruppe, Lese = alle + + + WARG + Skrive = admin, Lese = gruppe + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Alle + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..a75f27c --- /dev/null +++ b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Netwerk Station Service + + +nfsshare +Informatie-baai - NFS netwerk station + + + FIRSTPAGE_DESC + Beheer NFS informatie-baai instellingen, + + + ADD_TITLE + Beheer NFS informatie-baai instellingen, + + + NAME_FIELD_DESC + + + + NAME_LABEL + Informatie baai naam. + + + NO_IBAYS + Er zijn momenteel geen informatie-baaien geconfigureerd. + + + CANT_FIND_IBAY + Kan geen account vinden voor {$name} (bestaat deze account?) + + + ERROR_WHILE_MODIFYING_IBAY + Er is een fout opgetreden bij het modificeren van de informatie-baai. + + + SUCCESSFULLY_MODIFIED_IBAY + Informatie-baai is met succes gewijzigd. + + + Information bays + Informatie-baaien + + + DESC_ANONUIDGID + Stel de UID en GID in als u wilt dat alle verzoeken lijken te zijn van één gebruiker of één groep, anders leeg laten. + + + NFSSTATUS + Zet het NFS network station aan. + + + DESC_NFSCLIENT + Voor het toestaan van schrijven, toegand van een root gebruiker en het gebruik van onbeveiligde poorten, dient U een lijst van één IP per regel te configureren. Dezen moeten deel uitmaken van het lokale netwerk. + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + U dient IP's in te stellen die deel uitmaken van uw lokale netwerk. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + U dient echte IP's in te stellen die deel uitmaken van uw lokale netwerk . + + + ENABLE_LOCALNETWORK + Deel met het lokale netwerk. + + + NFSCLIENT + NFS werkstation(en) toestaan. + + + NFSRW + Bestand permissies. + + + RO + Alleen Lezen + + + RW + Lezen en Schrijven + + + NFSSYNC + (A)synchroon Schrijven. + + + SYNC + gelijktijdig + + + ASYNC + asynchrone + + + NFSDELAY + Vertraagt het schrijven naar het schijfstation. + + + WDELAY + schrijf vertraging + + + + NO_WDELAY + geen schrijf vertraging + + + NFSSQUASH + Onderdruk de kracht van gebruikers. + + + ROOT_SQUASH + onderdruk root permissies + + + NO_ROOT_SQUASH + geen onderdrukking van root permissies + + + ALL_SQUASH + all gebruikers permissies onderdrukt + + + NFSANONUID + Zet de UID. + + + NFSANONGID + Zet de GID. + + + NFSHIDE + Blader de bovenliggende mappen. + + + HIDE + map verstoppen + + + NOHIDE + map laten zien + + + NFSSECURE + Toegang vragen op beveiligde poorten. + + + SECURE + beveiligd + + + INSECURE + niet beveiligd + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + De GID moet een positief geheel getal zijn en minder dan 4.294.967.295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + De UID moet een positief geheel getal zijn en minder dan 4.294.967.295 + + + WGRG + Schrijven = groep, Lezen = groep + + + WGRE + Schrijven = groep, Lezen = iedereen + + + WARG + Schrijven = beheerder, Lezen = groep + + + GROUP_LABEL + Netwerkstation Eigenaar Groep + + + USERACCESS_LABEL + Informatie-baai permissies + + + EVERYONE + Iedereen + + + NFS_IS_ENABLED + NFS status + + + USER_ACCESS + Toegang via het delen van bestanden. + + + diff --git a/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..abd3446 --- /dev/null +++ b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + Nie udało się znaleźć konta dla {$name}(czy istnieje?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + Magazyn danych + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Zapis = grupa, Odczyt = grupa + + + WGRE + Zapis = grupa, Odczyt = wszyscy + + + WARG + Zapis = administrator, Odczyt = grupa + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Everyone + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..01173a5 --- /dev/null +++ b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + Contribuição de Compartilhamento NFS + + +nfsshare +I-bays - Compartilhamento NFS + + + FIRSTPAGE_DESC + Gerenciar configurações NFS do ibay + + + ADD_TITLE + Gerenciar configurações NFS do ibay + + + NAME_FIELD_DESC + + + + NAME_LABEL + Nome do Information bay. + + + NO_IBAYS + Não há nenhum compartilhamento atualmente configurado. + + + CANT_FIND_IBAY + Incapaz de encontrar conta para {$name} (isto existe?) + + + ERROR_WHILE_MODIFYING_IBAY + Ocorreu um erro enquanto modificando o i-Bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Alteração no i-Bay realizada com sucesso. + + + Information bays + Pastas + + + DESC_ANONUIDGID + Defina o UID e GID se você deseja que todas requisições pareçam vir de um usuário ou grupo, de outro modo deixe em branco. + + + NFSSTATUS + Habilite o Compartilhamento NFS. + + + DESC_NFSCLIENT + Para permissões de escrita, permitindo o usuário root e usando portas inseguras, você deve configurar uma lista de IP, um por linha, que sejam parte da lista de redes locais. + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + Você deve definir IPs que sejam parte de sua rede local. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + Você deve definir IPs reais que sejam parte de sua rede local. + + + ENABLE_LOCALNETWORK + Compartilhamento em rede local. + + + NFSCLIENT + Clientes NFS permitidos. + + + NFSRW + Permissões do sistema de arquivos + + + RO + Apenas Leitura + + + RW + Leitura e Escrita + + + NFSSYNC + Escrita (a)ssincrona. + + + SYNC + sincrona + + + ASYNC + assincrona + + + NFSDELAY + Retardar escritas para o disco. + + + WDELAY + retardo de escrita + + + + NO_WDELAY + sem retardo de escrita + + + NFSSQUASH + Diminuir o poder dos usuários. + + + ROOT_SQUASH + diminuir root + + + NO_ROOT_SQUASH + nao diminuir root + + + ALL_SQUASH + diminuir todos usuários + + + NFSANONUID + Definir o UID. + + + NFSANONGID + Definir o GID. + + + NFSHIDE + Navegar nas pastas superiores. + + + HIDE + esconder a pasta + + + NOHIDE + não esconder a pasta + + + NFSSECURE + Requisições em portas seguras. + + + SECURE + segura + + + INSECURE + insegura + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + o GID deve ser um inteiro positivo e menor que 4.294.967.295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + o UID deve ser um inteiro positivo e menor que 4.294.967.295 + + + WGRG + Escrever = grupo, Ler = grupo + + + WGRE + Escrever = grupo, Ler = todos + + + WARG + Escrever = admin, Ler = grupo + + + GROUP_LABEL + Compartilhar proprietário do grupo. + + + USERACCESS_LABEL + Permissões do i-bay. + + + EVERYONE + Todos + + + NFS_IS_ENABLED + Status do NFS + + + USER_ACCESS + Acesso via compartilhamento de arquivos. + + + diff --git a/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..0b02215 --- /dev/null +++ b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + Incapaz de encontrar conta para {$name} (isto não existe?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + Compartilhamentos + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Escrever = grupo, Ler = grupo + + + WGRE + Escrever = grupo, Ler = todos + + + WARG + Escrever = admin, Ler = grupo + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Todos + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..4c55fcc --- /dev/null +++ b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + Can't find account for {$name} (does it exist?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + Information bays + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Write = group, Read = group + + + WGRE + Write = group, Read = everyone + + + WARG + Write = admin, Read = group + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Everyone + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..e8e0528 --- /dev/null +++ b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + Невозможно найти учётную запись {$name} (она существует?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + Информационные блоки + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Только чтение + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Запись = group, Чтение = group + + + WGRE + Запись = group, Чтение = everyone + + + WARG + Запись = admin, Чтение = group + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Каждый + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..96274e2 --- /dev/null +++ b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + Ne najdem i-lista {$name} (ne obstaja?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + Informacijski listi + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Pisi = skupina, Beri = skupina + + + WGRE + Pisi = skupina, Beri = vsi + + + WARG + Pisi = admin, Beri = skupina + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Everyone + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..ab69112 --- /dev/null +++ b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + Kan inte finna konto för {$name} (existerar detta?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + Information bay + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Endast läsmöjlighet + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Skriva = grupp, Läsa = grupp + + + WGRE + Skriva = grupp, Läsa = alla + + + WARG + Skriva = admin, Läsa = grupp + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Alla + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/th/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..f4104c5 --- /dev/null +++ b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + ไม่พบบัญชี {$name} (มันมีอยู่หรือไม่?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + Information bays + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + เขียน = เฉพาะในกลุ่ม, อ่าน = เฉพาะในกลุ่ม + + + WGRE + เขียน = เฉพาะในกลุ่ม, อ่าน = ทุกคน + + + WARG + เขียน = ผู้ดูแลระบบ, อ่าน = เฉพาะในกลุ่ม + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + ทุกคน + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..e24cbca --- /dev/null +++ b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + {$name} hesabı bulunamadı (mevcut mu kontrol edin) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + i-bay (bilgi yuvaları) + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + Read Only + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + eşzamansız + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + güvenli + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + Yazma = grup, Okuma = grup + + + WGRE + Yazma = grup, Okuma = herkes + + + WARG + Yazma = admin, Okuma = grup + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + Herkes + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..60d9588 --- /dev/null +++ b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS Share Contrib + + +nfsshare +I-bays - NFS Share + + + FIRSTPAGE_DESC + Manage NFS Ibay settings. + + + ADD_TITLE + Manage NFS Ibay settings. + + + NAME_FIELD_DESC + + + + NAME_LABEL + Information bay name. + + + NO_IBAYS + There are no I-bays currently configured. + + + CANT_FIND_IBAY + 无法找到{$name}的账号(请确认其是否存在?) + + + ERROR_WHILE_MODIFYING_IBAY + An error occurred while modifying the I-bay. + + + SUCCESSFULLY_MODIFIED_IBAY + Successfully modified I-bay. + + + Information bays + 信息港 + + + DESC_ANONUIDGID + Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank. + + + NFSSTATUS + Enable the NFS Share. + + + DESC_NFSCLIENT + For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s). + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + You must set IP(s) being part of your local network. + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + You must set real IP(s) being part of your local network. + + + ENABLE_LOCALNETWORK + Share on local network. + + + NFSCLIENT + NFS Client(s) allowed. + + + NFSRW + File system permissions. + + + RO + 只读 + + + RW + Read and Write + + + NFSSYNC + Write (a)synchronously. + + + SYNC + synchronous + + + ASYNC + asynchronous + + + NFSDELAY + Delays the disk writings. + + + WDELAY + write delay + + + + NO_WDELAY + no write delay + + + NFSSQUASH + Squash the power of users. + + + ROOT_SQUASH + root squash + + + NO_ROOT_SQUASH + no root squash + + + ALL_SQUASH + all users squash + + + NFSANONUID + Set the UID. + + + NFSANONGID + Set the GID. + + + NFSHIDE + Browse the parent folders. + + + HIDE + hide folder + + + NOHIDE + nohide folder + + + NFSSECURE + Requests on secure ports. + + + SECURE + secure + + + INSECURE + insecure + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The GID has to be a positive integer inferior at 4,294,967,295 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + The UID has to be a positive integer inferior at 4,294,967,295 + + + WGRG + 写入=群,读取=群 + + + WGRE + 写入 = 群组,读取 = 任何人 + + + WARG + 写入 = 管理员,读取 = 群 + + + GROUP_LABEL + Share Owner Group. + + + USERACCESS_LABEL + I-bay Permissions. + + + EVERYONE + 任何人 + + + NFS_IS_ENABLED + Nfs status + + + USER_ACCESS + Access via file sharing. + + + diff --git a/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/nfsshare new file mode 100644 index 0000000..41720b1 --- /dev/null +++ b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,200 @@ + + + FORM_TITLE + NFS分享套件庫 + + +nfsshare +訊息匯集告示 - NFS 分享 + + + FIRSTPAGE_DESC + 管理NFS Ibay設定 + + + ADD_TITLE + 管理NFS Ibay設定 + + + NAME_FIELD_DESC + + + + NAME_LABEL + 訊息匯集告示的名稱 + + + NO_IBAYS + 當下無I-bay設定。 + + + CANT_FIND_IBAY + 無法找到 {$name} 的帳號(其是否存在?) + + + ERROR_WHILE_MODIFYING_IBAY + 修正I-bay時發生錯誤。 + + + SUCCESSFULLY_MODIFIED_IBAY + 成功修正I-bay。 + + + Information bays + 訊息匯集告示 + + + DESC_ANONUIDGID + 若您欲讓來自使用者或群組所有的請求顯示出來,請設定uid與gid,否則請留白。 + + + NFSSTATUS + 啟用NFS分享。 + + + DESC_NFSCLIENT + 對於寫入權限而言,允許最高權限使用者與使用非安全埠,您必須設定一行一IP的表列,以成為區網的一部分。 + + + NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK + 您必須設定IP以成為區網的一部分。 + + + NFSCLIENT_FIELD_IS_NOT_AN_IP + 您必須設定真實IP以成為區網的一部分。 + + + ENABLE_LOCALNETWORK + 在區網分享。 + + + NFSCLIENT + NFS客戶端允許。 + + + NFSRW + 檔案系統權限。 + + + RO + 唯讀 + + + RW + 讀與寫 + + + NFSSYNC + (非)同步寫入。 + + + SYNC + 同步 + + + ASYNC + 非同步 + + + NFSDELAY + 延後磁碟寫入 + + + WDELAY + 延後寫入 + + + + NO_WDELAY + 無延後寫入 + + + NFSSQUASH + 抑制使用者權限。 + + + ROOT_SQUASH + root抑制 + + + NO_ROOT_SQUASH + 無root抑制 + + + ALL_SQUASH + 抑制所有使用者 + + + NFSANONUID + 設定UID + + + NFSANONGID + 設定GID + + + NFSHIDE + 瀏覽上層目錄。 + + + HIDE + 隱藏目錄 + + + NOHIDE + 未隱藏目錄 + + + NFSSECURE + 安全連接埠的要求 + + + SECURE + 安全 + + + INSECURE + 不安全 + + + THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + GID必需是低於4,294,967,295的正整數 + + + THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295 + UID必需是低於4,294,967,295的正整數 + + + WGRG + 寫入=群組,讀取=群組 + + + WGRE + 寫入 = 群組,讀取 = 每個人 + + + WARG + 寫入 = 管理員,讀取 = 群組 + + + GROUP_LABEL + 分享使用者群組。 + + + USERACCESS_LABEL + I-bay權限 + + + EVERYONE + 每個人 + + + NFS_IS_ENABLED + NFS狀態 + + + USER_ACCESS + 透過檔案分享來存取。 + + + diff --git a/root/etc/e-smith/templates/etc/exports/10exports b/root/etc/e-smith/templates/etc/exports/10exports new file mode 100644 index 0000000..649e53a --- /dev/null +++ b/root/etc/e-smith/templates/etc/exports/10exports @@ -0,0 +1,99 @@ +{ + use strict; + use warnings; + use esmith::AccountsDB; + use esmith::ConfigDB; + use esmith::NetworksDB; + use Net::IPv4Addr qw(ipv4_in_network ipv4_parse); + use esmith::util::network qw(isValidIP); + + my $ndb = esmith::NetworksDB->open_ro; + my $accounts = esmith::AccountsDB->open_ro; + my $config = esmith::ConfigDB->open_ro; + + sub convert_to_cidr + { + $_ = shift; + return "$_/32" unless (m!/!); + my ($ip,$bits) = ipv4_parse($_); + return "$ip/$bits"; + } + + my @localAccess = map { + convert_to_cidr($_) + } $ndb->local_access_spec(); + + + my @ibays = $accounts->ibays; + + foreach my $ibay (@ibays) + { + #first we verify if the NFS is enabled for the ibay + my $nfsstatus = $ibay->prop("NfsStatus") || "disabled"; + + #then we look about the host(s) allowed + my $nfsclient = $ibay->prop("NfsClient") || ""; + my $nfslocalnetwork = $ibay->prop("NfsLocalNetwork") || "disabled"; + + $nfsclient = $nfsclient . ':local' if ($nfslocalnetwork eq 'enabled'); + + #Then we retrieve the name of the ebay + my $key = $ibay->key; + + #start to count + my $count = '0'; + + if (($nfsstatus eq 'enabled')) + { + # write the configuration + { + my @IP = split /[:]/, $nfsclient; + foreach my $IP (@IP) + { + #now we look about exports options + my $nfsrw = $ibay->prop("NfsRW") || 'ro'; + my $nfssync = $ibay->prop("NfsSync") || 'sync'; + my $wdelay = $ibay->prop("NfsWdelay") || 'wdelay'; + my $nfssquash = $ibay->prop("NfsSquash") || 'root_squash'; + my $anonuid = $ibay->prop("NfsAnonUid") || ''; + my $anongid = $ibay->prop("NfsAnonGid") || ''; + my $secure = $ibay->prop("NfsSecure") || 'secure'; + my $hide = $ibay->prop("NfsHide") || 'nohide'; + + my $nfs_options = $hide . ',' . $nfssync . ',' . $wdelay; + + if (isValidIP($IP) && (grep { ipv4_in_network($_, $IP) } @localAccess) ) + { + $nfs_options = $nfs_options . ',' . "anonuid=$anonuid" + if (($anonuid =~ m/(\d+)/) && ($anonuid !~ m/(\D+)/)); + $nfs_options = $nfs_options . ',' . "anongid=$anongid" + if (($anongid =~ m/(\d+)/) && ($anongid !~ m/(\D+)/)); + $nfs_options = $nfs_options . ',' . $nfsrw; + $nfs_options = $nfs_options . ',' . $nfssquash; + $nfs_options = $nfs_options . ',' . $secure; + $OUT .= "\n/home/e-smith/files/ibays/$key/files " if ($count == '0'); + $OUT .= " $IP($nfs_options)"; + $count++ + } + + if ($IP eq 'local') + { + $nfsrw = 'ro'; + $nfssquash = 'root_squash'; + $secure = 'secure'; + $nfs_options = $nfs_options . ',' . $nfsrw; + $nfs_options = $nfs_options . ',' . $nfssquash; + $nfs_options = $nfs_options . ',' . $secure; + + foreach my $localAccess (@localAccess) + { + $OUT .= "\n/home/e-smith/files/ibays/$key/files " if ($count == '0'); + $OUT .= " $localAccess($nfs_options)" if $localAccess !~ '127.0.0.1'; + $count++ + } + } + } + } + } + } +} diff --git a/root/etc/e-smith/templates/etc/exports/20CustomRules b/root/etc/e-smith/templates/etc/exports/20CustomRules new file mode 100644 index 0000000..e22851e --- /dev/null +++ b/root/etc/e-smith/templates/etc/exports/20CustomRules @@ -0,0 +1,58 @@ +{ + use strict; + use warnings; + use esmith::NetworksDB; + use esmith::ConfigDB; + use Net::IPv4Addr qw(ipv4_in_network ipv4_parse); + use esmith::util::network qw(isValidIP); + + my $DB = esmith::ConfigDB->open_ro or die "can't open Config DB"; + my $ndb = esmith::NetworksDB->open_ro or die "can't open Network DB"; + + sub convert_to_cidr2 + { + $_ = shift; + return "$_/32" unless (m!/!); + my ($ip,$bits) = ipv4_parse($_); + return "$ip/$bits"; + } + + my @localAccess = map { + convert_to_cidr2($_) + } $ndb->local_access_spec(); + + + my $rules = $DB->get('nfs-rules') || ''; + return "\# no custom rules, you are an Angel\n" unless ($rules ne ''); + + my %properties = $rules->props; + + $OUT .= "\n"; + $OUT .= "# Here Your custom rules, we hope that you know what you are doing\n"; + + foreach my $properties ( sort keys %properties) + { + my $values = $DB->get_prop("nfs-rules","$properties"); + my $IP = $1 if $values =~/(\d{1,5}\.\d{1,5}\.\d{1,5}\.\d{1,5})/; + + if ($values =~/[\/a-zA-Z0-9_\-]+\s+(\d{1,5}\.\d{1,5}\.\d{1,5}\.\d{1,5}(\(|\/\d{2,2}\())/) + { + $OUT .= "$values\n" if (isValidIP($IP) && (grep { ipv4_in_network($_, $IP) } @localAccess) ); + $OUT .= "##This is not an IP : $values\n" if (!isValidIP($IP)); + $OUT .= "##Your IP is not in any Local Networks : $values\n" if (isValidIP($IP) + && (!grep { ipv4_in_network($_, $IP) } @localAccess)); + } + elsif ($values =~/(\/+)\s+(\d{1,5}\.\d{1,5}\.\d{1,5}\.\d{1,5})/) + { + $OUT .= "##Give a full path, '/' is not accepted : $values\n"; + } + elsif ($values =~/[\/a-zA-Z0-9_\-]+\s+\*/) + { + $OUT .= "##Wild Card * not accepted: $values\n"; + } + elsif ($values =~/[\/a-zA-Z0-9_\-]+\s+(\d{1,5}\.\d{1,5}\.\d{1,5}\.\d{1,5})(\s+|\/\d{2,2}\s+)/) + { + $OUT .="##No spaces between IP and nfs rules : $values\n"; + } + } +} diff --git a/root/etc/e-smith/templates/etc/hosts.allow/lockd b/root/etc/e-smith/templates/etc/hosts.allow/lockd new file mode 100644 index 0000000..5bb7787 --- /dev/null +++ b/root/etc/e-smith/templates/etc/hosts.allow/lockd @@ -0,0 +1,3 @@ +{ + $DB->hosts_allow_spec('nfslock', 'lockd'); +} diff --git a/root/etc/e-smith/templates/etc/hosts.allow/mountd b/root/etc/e-smith/templates/etc/hosts.allow/mountd new file mode 100644 index 0000000..531f79d --- /dev/null +++ b/root/etc/e-smith/templates/etc/hosts.allow/mountd @@ -0,0 +1,3 @@ +{ + $DB->hosts_allow_spec('nfs', 'mountd'); +} diff --git a/root/etc/e-smith/templates/etc/hosts.allow/rpcbind b/root/etc/e-smith/templates/etc/hosts.allow/rpcbind new file mode 100644 index 0000000..64dbbbb --- /dev/null +++ b/root/etc/e-smith/templates/etc/hosts.allow/rpcbind @@ -0,0 +1,3 @@ +{ + $DB->hosts_allow_spec('rpcbind', 'rpcbind'); +} diff --git a/root/etc/e-smith/templates/etc/hosts.allow/rquotad b/root/etc/e-smith/templates/etc/hosts.allow/rquotad new file mode 100644 index 0000000..5153f5f --- /dev/null +++ b/root/etc/e-smith/templates/etc/hosts.allow/rquotad @@ -0,0 +1,3 @@ +{ + $DB->hosts_allow_spec('nfs', 'rquotad'); +} diff --git a/root/etc/e-smith/templates/etc/hosts.allow/statd b/root/etc/e-smith/templates/etc/hosts.allow/statd new file mode 100644 index 0000000..a6ec7ef --- /dev/null +++ b/root/etc/e-smith/templates/etc/hosts.allow/statd @@ -0,0 +1,3 @@ +{ + $DB->hosts_allow_spec('nfslock', 'statd'); +} diff --git a/root/etc/e-smith/templates/etc/sysconfig/nfs/lockdPort b/root/etc/e-smith/templates/etc/sysconfig/nfs/lockdPort new file mode 100644 index 0000000..7f28e82 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sysconfig/nfs/lockdPort @@ -0,0 +1,2 @@ +LOCKD_TCPPORT={ $nfslock{lockdPort} } +LOCKD_UDPPORT={ $nfslock{lockdPort} } diff --git a/root/etc/e-smith/templates/etc/sysconfig/nfs/mountdPort b/root/etc/e-smith/templates/etc/sysconfig/nfs/mountdPort new file mode 100644 index 0000000..1eaec68 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sysconfig/nfs/mountdPort @@ -0,0 +1 @@ +MOUNTD_PORT={ $nfs{mountdPort} } diff --git a/root/etc/e-smith/templates/etc/sysconfig/nfs/rquotadPort b/root/etc/e-smith/templates/etc/sysconfig/nfs/rquotadPort new file mode 100644 index 0000000..0926e65 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sysconfig/nfs/rquotadPort @@ -0,0 +1 @@ +RQUOTAD_PORT={ $nfs{rquotadPort} } diff --git a/root/etc/e-smith/templates/etc/sysconfig/nfs/statdPort b/root/etc/e-smith/templates/etc/sysconfig/nfs/statdPort new file mode 100644 index 0000000..dcd13f2 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sysconfig/nfs/statdPort @@ -0,0 +1,2 @@ +STATD_PORT={ $nfslock{statdPort} } +STATD_OUTGOING_PORT={ $nfslock{statdOutgoingPort} } diff --git a/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/80-nfs.preset b/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/80-nfs.preset new file mode 100644 index 0000000..81467c2 --- /dev/null +++ b/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/80-nfs.preset @@ -0,0 +1,12 @@ +#nfs specific +{ +$status = $nfslock{status} || 'disabled'; +$status = ($status eq "enabled") ? "enable" : "disable"; +$OUT .= "$status rpc-statd.service\n"; + +$status = $nfs{status} || 'disabled'; +$status = ($status eq "enabled") ? "enable" : "disable"; +$OUT .= "$status nfs-server.service\n"; + +} + diff --git a/root/etc/e-smith/web/functions/nfsshare b/root/etc/e-smith/web/functions/nfsshare new file mode 100755 index 0000000..51c0abf --- /dev/null +++ b/root/etc/e-smith/web/functions/nfsshare @@ -0,0 +1,164 @@ +#!/usr/bin/perl -wT + +# vim: ft=xml ts=4 sw=4 et: +#---------------------------------------------------------------------- +# heading : Collaboration +# description : nfsshare +# navigation : 2000 2500 +# +# Copyright (c) 2001 Mitel Networks Corporation +# 2014 stephane de Labrusse +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Technical support for this program is available from e-smith, inc. +# Please visit our web site www.e-smith.com for details. +#---------------------------------------------------------------------- + +use strict; +use esmith::FormMagick::Panel::nfsshare; + +my $fm = esmith::FormMagick::Panel::nfsshare->new(); +$fm->display(); + +=pod + +=head1 NAME + +nfsshare -- manage nfs share + +=head2 DESCRIPTION + +This screen allows the administrator to manage information bays. + +=begin testing + +use esmith::FormMagick::Tester; +use esmith::TestUtils; +use esmith::TestUtils; +use esmith::ConfigDB; +use esmith::AccountsDB; + +my $panel = $Original_File; +my $ua = esmith::FormMagick::Tester->new(); + +my $c = esmith::ConfigDB->open(); +my $a = esmith::AccountsDB->open(); + +is (mode($panel), '4750', "Check permissions on script"); +ok ($ua->get_panel($panel), "ABOUT TO RUN L10N TESTS"); +is ($ua->{status}, 200, "200 OK"); +#like($ua->{content}, qr/FORM_TITLE/, "Saw untranslated form title"); +ok ($ua->set_language("en"), "Set language to English"); +ok ($ua->get_panel($panel), "Get panel"); +is ($ua->{status}, 200, "200 OK"); +like($ua->{content}, qr/Information bays/, "Saw translated form title"); + +ok ($ua->get_panel($panel), "ABOUT TO TEST CREATING IBAY"); +ok ($ua->follow("Click here"), "Follow 'create ibay' link"); +is ($ua->{status}, 200, "200 OK"); +like($ua->{content}, qr/Create a new information bay/, "Saw page title"); +like($ua->{content}, qr/Brief description/, "Saw description field"); +like($ua->{content}, qr/Group/, "Saw group field"); +like($ua->{content}, qr/User access via file/, "Saw user access field"); +like($ua->{content}, qr/Public access via/, "Saw Public access field"); +like($ua->{content}, qr/Add/, "Saw add button"); + +SKIP: { + + skip 10, "Unsafe!" unless destruction_ok(); + + ok ($ua->follow("Click here"), "ACTUALLY ADDING A NETWORK"); + $ua->field(); + $ua->click("Add"); + like($ua->{content}, qr/Successfully added ibay/, "Saw success message"); + + ok ($ua->follow("Remove"), "REMOVING NETWORK"); + like($ua->{content}, qr/Are you sure/, "Saw confirmation message"); + $ua->click("Remove"); + like($ua->{content}, qr/Successfully deleted/, "Saw success message"); + +} + + +=cut + +__DATA__ +
+ + FIRSTPAGE_DESC + + + + + ADD_TITLE + + + + + + + + + + + + + + + + + DESC_NFSCLIENT + + + + + + + + + + + + + + + + + + + + + + + + DESC_ANONUIDGID + + + + + + + + + + +
+ diff --git a/root/usr/lib/systemd/system/nfs-server.service.d/50koozali.conf b/root/usr/lib/systemd/system/nfs-server.service.d/50koozali.conf new file mode 100644 index 0000000..b06b26a --- /dev/null +++ b/root/usr/lib/systemd/system/nfs-server.service.d/50koozali.conf @@ -0,0 +1,3 @@ +[Install] +WantedBy=sme-server.target + diff --git a/root/usr/lib/systemd/system/rpc-statd.service.d/50koozali.conf b/root/usr/lib/systemd/system/rpc-statd.service.d/50koozali.conf new file mode 100644 index 0000000..b06b26a --- /dev/null +++ b/root/usr/lib/systemd/system/rpc-statd.service.d/50koozali.conf @@ -0,0 +1,3 @@ +[Install] +WantedBy=sme-server.target + diff --git a/root/usr/lib/systemd/system/rpcbind.service.d/50koozali.conf b/root/usr/lib/systemd/system/rpcbind.service.d/50koozali.conf new file mode 100644 index 0000000..b06b26a --- /dev/null +++ b/root/usr/lib/systemd/system/rpcbind.service.d/50koozali.conf @@ -0,0 +1,3 @@ +[Install] +WantedBy=sme-server.target + diff --git a/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/nfsshare.pm b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/nfsshare.pm new file mode 100644 index 0000000..fcd52b3 --- /dev/null +++ b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/nfsshare.pm @@ -0,0 +1,581 @@ +#!/usr/bin/perl -w + +# +# $Id: ibays.pm,v 1.8 2005/09/06 05:49:52 apc Exp $ +# + +package esmith::FormMagick::Panel::nfsshare; + +use strict; + +use esmith::FormMagick; +use esmith::AccountsDB; +use esmith::ConfigDB; +use esmith::DomainsDB; +use esmith::cgi; +use esmith::util; +use File::Basename; +use Exporter; +use Carp; +use esmith::util::network qw(isValidIP); +use Net::IPv4Addr qw(ipv4_in_network ipv4_parse); + + +our @ISA = qw(esmith::FormMagick Exporter); + +our @EXPORT = qw( + print_ibay_table + print_ibay_name_field + print_vhost_message + group_list + userAccess_list + max_ibay_name_length + handle_ibays + print_save_or_add_button + wherenext + IPinLocalNetwork + ValidUid + ValidGid + getExtraParams +); + +our $VERSION = sprintf '%d.%03d', q$Revision: 1.8 $ =~ /: (\d+).(\d+)/; + +our $accountdb = esmith::AccountsDB->open(); +our $configdb = esmith::ConfigDB->open(); +our $ndb = esmith::NetworksDB->open_ro(); +=pod + +=head1 NAME + +esmith::FormMagick::Panels::ibays - useful panel functions + +=head1 SYNOPSIS + + use esmith::FormMagick::Panels::ibays; + + my $panel = esmith::FormMagick::Panel::ibays->new(); + $panel->display(); + +=head1 DESCRIPTION + +=head2 new(); + +Exactly as for esmith::FormMagick + +=begin testing + +$ENV{ESMITH_ACCOUNT_DB} = "10e-smith-base/accounts.conf"; +$ENV{ESMITH_CONFIG_DB} = "10e-smith-base/configuration.conf"; +$ENV{ESMITH_DOMAINS_DB} = "10e-smith-base/domains.conf"; + +use_ok('esmith::FormMagick::Panel::ibays'); +use vars qw($panel); +ok($panel = esmith::FormMagick::Panel::ibays->new(), + "Create panel object"); +isa_ok($panel, 'esmith::FormMagick::Panel::ibays'); + +{ package esmith::FormMagick::Panel::ibays; + our $accountdb; + ::isa_ok($accountdb, 'esmith::AccountsDB'); +} + +=end testing + +=cut + +sub new +{ + my $proto = shift; + my $class = ref($proto) || $proto; + my $self = esmith::FormMagick::new($class); + $self->{calling_package} = (caller)[0]; + + return $self; +} + +=head1 HTML GENERATION ROUTINES + +Routines for generating chunks of HTML needed by the panel. + +=head1 ROUTINES FOR FILLING IN FIELDS + +=head2 print_ibay_table + +Prints out the ibay table on the front page. + +=for testing +my $self = esmith::FormMagick::Panel::ibays->new(); +$self->{cgi} = CGI->new(""); +can_ok('main', 'print_ibay_table'); +$self->print_ibay_table(); +like($_STDOUT_, qr/NAME/, "Found NAME header in table output"); +#like($_STDOUT_, qr/testibay/, "Found test ibay in user table output"); +#like($_STDOUT_, qr/ff0000/, "Found red 'reset password' output"); + +=cut + +sub print_ibay_table { + my $self = shift; + my $q = $self->{cgi}; + my $name = $self->localise('NAME'); + my $description = $self->localise('DESCRIPTION'); + my $nfsstatus = $self->localise('NFS_IS_ENABLED'); + my $modify = $self->localise('MODIFY'); + my $action_h = $self->localise('ACTION'); + + my @ibays = $accountdb->ibays(); + + unless ( scalar @ibays ) + { + print $q->Tr($q->td($self->localise('NO_IBAYS'))); + return ""; + } + + print $q->start_table({-CLASS => "sme-border"}),"\n"; + print $q->Tr ( + esmith::cgi::genSmallCell($q, $name,"header"), + esmith::cgi::genSmallCell($q, $description,"header"), + esmith::cgi::genSmallCell($q, $nfsstatus,"header"), + esmith::cgi::genSmallCell($q, $action_h,"header", 3)),"\n"; + my $scriptname = basename($0); + + foreach my $i (@ibays) + { + my $ibayname = $i->key(); + my $ibaydesc = $i->prop('Name'); + my $ibaynfs = $i->prop('NfsStatus')||'disabled'; + my $modifiable = $i->prop('Modifiable') || 'yes'; + + $ibaynfs = $self->localise('ENABLED') if ($ibaynfs eq 'enabled'); + $ibaynfs = $self->localise('DISABLED') if ($ibaynfs eq 'disabled'); + + + my $params = $self->build_ibay_cgi_params($ibayname, $i->props()); + + + my $href = "$scriptname?$params&action=modify&wherenext="; + + my $actionModify = ' '; + if ($modifiable eq 'yes') + { + $actionModify .= $q->a({href => "${href}CreateModify"},$modify) + . ' '; + } + + + print $q->Tr ( + esmith::cgi::genSmallCell($q, $ibayname,"normal"), + esmith::cgi::genSmallCell($q, $ibaydesc,"normal"), + esmith::cgi::genSmallCell($q, $ibaynfs,"normal"), + esmith::cgi::genSmallCell($q, $actionModify,"normal")); + } + + print $q->end_table,"\n"; + + return ""; +} + +sub build_ibay_cgi_params { + my ($self, $ibayname, %oldprops) = @_; + + #$oldprops{'description'} = $oldprops{Name}; + #delete $oldprops{Name}; + + my %props = ( + page => 0, + page_stack => "", + #".id" => $self->{cgi}->param('.id') || "", + name => $ibayname, + #%oldprops + ); + + return $self->props_to_query_string(\%props); +} + +*wherenext = \&CGI::FormMagick::wherenext; + +sub print_ibay_name_field { + my $self = shift; + my $in = $self->{cgi}->param('name') || ''; + # my $group = $accountdb->get_prop("$in",'Group')||''; + # my $groupdesc = $accountdb->get_prop("$group",'Description')||''; + # my $useraccess = $accountdb->get_prop("$in",'UserAccess')||''; + my $action = $self->{cgi}->param('action') || ''; + my $maxLength = $configdb->get('maxIbayNameLength')->value; + + #retieve the translation for useraccess + # $useraccess = $self->localise('WGRG') if ($useraccess eq 'wr-group-rd-group'); + # $useraccess = $self->localise('WGRE') if ($useraccess eq 'wr-group-rd-everyone'); + # $useraccess = $self->localise('WARG') if ($useraccess eq 'wr-admin-rd-group'); + #retrieve correct name/description + #$group = $self->localise('EVERYONE') if ($group eq 'shared'); + #$group = "$groupdesc " . "($group)" if ($groupdesc ne ''); + + print qq() . $self->localise('NAME_FIELD_DESC', + {maxLength => $maxLength}) . qq(); + print qq() . + $self->localise('NAME_LABEL') . qq(\n); + if ($action eq 'modify' and $in) { + print qq( + $in + + + + ); +# print qq() . +# $self->localise('GROUP_LABEL') . qq(\n); +# print qq( +# $group +# +# +# +# ); +# print qq() . +# $self->localise('USERACCESS_LABEL') . qq(\n); +# print qq( +# $useraccess +# +# +# +# ); + + # Read the values for each field from the accounts db and store + # them in the cgi object so our form will have the correct + # info displayed. + my $q = $self->{cgi}; + my $rec = $accountdb->get($in); + if ($rec) + { + $q->param(-name=>'description',-value=> + $rec->prop('Name')); + $q->param(-name=>'group',-value=> + $rec->prop('Group')); + $q->param(-name=>'userAccess',-value=> + $rec->prop('UserAccess')); + $q->param(-name=>'nfsstatus',-value=> + ($rec->prop('NfsStatus'))); + $q->param(-name=>'nfslocalnetwork',-value=> + ($rec->prop('NfsLocalNetwork'))); + #we need to replace the : delimeter of the db per a \n + #with that we can have one ip per line in the textarea box of the panel + my $nfsclientform = $rec->prop('NfsClient') || ''; + $nfsclientform =~ s/:/\n/g; + + $q->param(-name=>'nfsclient',-value=> $nfsclientform); + $q->param(-name=>'nfsrw',-value=> + ($rec->prop('NfsRW'))); + $q->param(-name=>'nfssync',-value=> + ($rec->prop('NfsSync'))); + $q->param(-name=>'nfswdelay',-value=> + ($rec->prop('NfsWdelay'))); + $q->param(-name=>'nfssquash',-value=> + ($rec->prop('NfsSquash'))); + $q->param(-name=>'nfsanonuid',-value=> + ($rec->prop('NfsAnonUid'))); + $q->param(-name=>'nfsanongid',-value=> + ($rec->prop('NfsAnonGid'))); + $q->param(-name=>'nfshide',-value=> + ($rec->prop('NfsHide'))); + $q->param(-name=>'nfssecure',-value=> + ($rec->prop('NfsSecure'))); + } + } else { + print qq( + + + + ); + } + + print qq(\n); + return undef; + +} + + +=pod + +=head2 print_vhost_message() + +Prints a warning message that vhosts whose content is this ibay will be +modified to point to primary site. + +=for testing +$panel->{cgi} = CGI->new(); +$panel->{cgi}->param(-name=>'name', -value=>'bar'); +is($panel->print_vhost_message(), undef, 'print_vhost_message'); + +=cut + +sub print_vhost_message { + my $self = shift; + my $q = $self->{cgi}; + my $name = $q->param('name'); + + my $domaindb = esmith::DomainsDB->open(); + my @domains = $domaindb->get_all_by_prop(Content => $name); + my $vhostListItems = join "\n", + (map ($q->li($_->key." ".$_->prop('Description')), + @domains)); + if ($vhostListItems) + { + print $self->localise('VHOST_MESSAGE', {vhostList => $vhostListItems}); + } + return undef; +} + +=head2 group_list() + +Returns a hash of groups for the Create/Modify screen's group field's +drop down list. + +=for testing +can_ok('main', 'group_list'); +my $g = group_list(); +is(ref($g), 'HASH', "group_list returns a hashref"); +is($g->{simpsons}, "Simpsons Family (simpsons)", + "Found names and descriptions"); + +=cut + + +=head1 THE ROUTINES THAT ACTUALLY DO THE WORK + +=for testing +can_ok('main', 'handle_ibays'); + +=cut + +sub handle_ibays { + my ($self) = @_; + + + if ($self->cgi->param("action") eq "create") { + $self->create_ibay(); + } else { + $self->modify_ibay(); + } +} + +=head2 print_save_or_add_button() +=cut + +sub print_save_or_add_button { + my ($self) = @_; + + my $action = $self->cgi->param("action") || ''; + if ($action eq "modify") { + $self->print_button("SAVE"); + } else { + $self->print_button("ADD"); + } + +} + + +sub modify_ibay { + my ($self) = @_; + my $name = $self->cgi->param('name'); + #we take the content of textarea nfsclient (one ip per line) + #and we split it and add a separator ':' to record that in a db + my $nfsclientCGI = $self->cgi->param('nfsclient'); + my @nfsclientCGI = split /\s+/, $nfsclientCGI; + my $nfsclientdb = ''; + foreach (@nfsclientCGI) + { + $nfsclientdb = $nfsclientdb . ':' . $_; + } + + if (my $acct = $accountdb->get($name)) { + if ($acct->prop('type') eq 'ibay') { + $acct->merge_props( + NfsStatus => $self->cgi->param('nfsstatus'), + NfsLocalNetwork => $self->cgi->param('nfslocalnetwork'), + UserAccess => $self->cgi->param('userAccess'), + Group => $self->cgi->param('group'), + NfsClient => $nfsclientdb, + NfsRW => $self->cgi->param('nfsrw'), + NfsSync => $self->cgi->param('nfssync'), + NfsWdelay => $self->cgi->param('nfswdelay'), + NfsSquash => $self->cgi->param('nfssquash'), + NfsAnonUid => $self->cgi->param('nfsanonuid'), + NfsAnonGid => $self->cgi->param('nfsanongid'), + NfsSecure => $self->cgi->param('nfssecure'), + NfsHide => $self->cgi->param('nfshide'), + ); + + # Untaint $name before use in system() + $name =~ /(.+)/; $name = $1; + if (system ("/sbin/e-smith/signal-event", "ibay-modify", + $name) == 0 && system ("/sbin/e-smith/signal-event", "nfs-conf", + $name) == 0) + { + $self->success("SUCCESSFULLY_MODIFIED_IBAY"); + } else { + $self->error("ERROR_WHILE_MODIFYING_IBAY"); + } + } else { + $self->error('CANT_FIND_IBAY'); + } + } else { + $self->error('CANT_FIND_IBAY'); + } +} + +=head2 IPinLocalNetwork + +verify that the IP list contains good IP and also in the range of all Local Network + +=cut +sub IPinLocalNetwork { + my $self = shift; + my $nfsclientfield = $self->cgi->param('nfsclient'); + my @nfsclient = split /\s+/, $nfsclientfield; + + sub convert_to_cidr + { + $_ = shift; + return "$_/32" unless m!/!; + my ($ip,$bits) = ipv4_parse($_); + return "$ip/$bits"; + } + + my @localAccess = map { + convert_to_cidr($_) + } $ndb->local_access_spec(); + + foreach my $nfsclient (@nfsclient) + { + if (!isValidIP($nfsclient)) + { + return $self->localise('NFSCLIENT_FIELD_IS_NOT_AN_IP'); + } + elsif (!grep { ipv4_in_network($_, $nfsclient) } @localAccess) + { + return $self->localise('NFSCLIENT_FIELD_IS_NOT_IN_ANY_LOCALNETWORK'); + } + } + return "OK"; +} + +=head2 ValidUid + +verify that the gid is a positive integer inferior at 4294967295 + +=cut +sub ValidUid { + my $self = shift; + my $nfsanonuid = $self->cgi->param('nfsanonuid'); + $nfsanonuid = '1' if $nfsanonuid eq ''; + if (($nfsanonuid eq int($nfsanonuid)) && ($nfsanonuid > 0) && ($nfsanonuid < 4294967295)) + { + return "OK"; + } + else + { + return $self->localise('THE_UID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295'); + } +} + +=head2 ValidGid + +verify that the gid is a positive integer inferior at 4294967295 + +=cut +sub ValidGid { + my $self = shift; + my $nfsanongid = $self->cgi->param('nfsanongid'); + $nfsanongid = '1' if $nfsanongid eq ''; + if (($nfsanongid eq int($nfsanongid)) && ($nfsanongid > 0) && ($nfsanongid < 4294967295)) + { + return "OK"; + } + else + { + return $self->localise('THE_GID_HAS_TO_BE_A_POSITIVE_INTEGER_INFERIOR_4294967295'); + } +} + +=pod + +=head2 getExtraParams() + +Sets variables used in the lexicon to their required values. + +=for testing +$panel->{cgi}->param(-name=>'name', -value=>'foo'); +my %ret = $panel->getExtraParams(); +is($ret{name}, 'foo', ' .. name field is foo'); +isnt($ret{description}, undef, ' .. description field isnt undef'); + +=cut + +sub getExtraParams +{ + my $self = shift; + my $q = $self->{cgi}; + my $name = $q->param('name'); + my $desc = ''; + + if ($name) + { + my $acct = $accountdb->get($name); + if ($acct) + { + $desc = $acct->prop('Name'); + } + } + return (name => $name, description => $desc); +} + + +=head2 group_list() + +Returns a hash of groups for the Create/Modify screen's group field's +drop down list. + +=for testing +can_ok('main', 'group_list'); +my $g = group_list(); +is(ref($g), 'HASH', "group_list returns a hashref"); +is($g->{simpsons}, "Simpsons Family (simpsons)", + "Found names and descriptions"); + +=cut + +sub group_list +{ + my @groups = $accountdb->groups(); + my %groups = ( admin => 'Admin', shared => 'Everyone' ); + foreach my $g (@groups) { + $groups{$g->key()} = $g->prop('Description')." (". + $g->key.")"; + } + return \%groups; +} + + +=head2 userAccess_list + +Returns the hash of user access settings for showing in the user access +drop down list. + +=for testing +can_ok('main', 'userAccess_list'); +my $u = userAccess_list(); +is(ref($u), 'HASH', "userAccess_list returns a hashref"); +like($u->{'wr-group-rd-group'}, qr/WGRG/, "hashref contains the right stuff"); + +=cut + +sub userAccess_list +{ + return { + 'wr-group-rd-group' => 'WGRG', + 'wr-group-rd-everyone' => 'WGRE', + 'wr-admin-rd-group' => 'WARG' + }; +} + +1; diff --git a/smeserver-nfs.spec b/smeserver-nfs.spec new file mode 100644 index 0000000..bbe58cc --- /dev/null +++ b/smeserver-nfs.spec @@ -0,0 +1,141 @@ +# $Id: smeserver-nfs.spec,v 1.7 2024/09/06 00:59:47 terryfage Exp $ +# Authority: slords +# Name: Shad L. Lords + +Summary: smeserver - configure nfs server +%define name smeserver-nfs +Name: %{name} +%define version 1.2.0 +%define release 23 +Version: %{version} +Release: %{release}%{?dist} +License: GPL +Group: Networking/Daemons +Source: %{name}-%{version}.tar.xz +BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot +Requires: e-smith-base +Requires: smeserver-release >= 9 +Requires: nfs-utils +Requires: nfs4-acl-tools +Requires: e-smith-lib +Requires: e-smith-packetfilter +BuildRequires: e-smith-devtools +BuildArchitectures: noarch + +%description +e-smith server and gateway - configure nfs server + +%changelog +* Sat Sep 07 2024 cvs2git.sh aka Brian Read 1.2.0-23.sme +- Roll up patches and move to git repo [SME: 12338] + +* Sat Sep 07 2024 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Fri Sep 06 2024 Terry Fage 1.2.0-22.sme +- apply locale 2024-09-06.patch + +* Fri Nov 18 2022 Jean-Philippe Pialasse %{version}-21.sme +- fix service not starting and not accessible [SME: 12230] +- using systemd and removing sysvinit links + +* Mon Aug 23 2021 Terry Fage 1.2.0-20.sme +- apply locale 2021-08-22 patch + +* Wed Mar 03 2021 Brian Read 1.2.0-19.sme +- Add in -update event [SME:11272 ] + +* Mon Dec 21 2020 Brian Read 1.2.0-18.sme +- Alter-rcpbind-restart-to-systemctl-call [SME: 11272] + +* Sat Dec 19 2020 Brian Read 1.2.0-17.sme +- Initial import to SME10 [SME: 11272] + +* Sat Dec 07 2019 SME Translation Server 1.2.0-16.sme +- apply locale 2019-12-07 patch + +* Fri Dec 14 2018 John Crisp 1.2.0-15.sme +- apply locale 2018-12-14 patch + +* Sat Dec 02 2017 SME Translation Server 1.2.0-14.sme +- apply locale 2017-12-02 patch + +* Sat Mar 25 2017 Jean-Philipe Pialasse 1.2.0-13.sme +- apply locale 2017-03-25 patch + +* Wed Feb 01 2017 Jean-Philipe Pialasse 1.2.0-12.sme +- apply locale 2017-02-02.patch + +* Wed Mar 09 2016 JP Pialasse 1.2.0-11.sme +- apply locale 2016-03-09 patch + +* Sat Sep 12 2015 stephane de Labrusse 1.2.0-10.sme +- Added smeserver-nfs-1.2.0-locale-2015-09-12.patch + +* Sat Aug 22 2015 stephane de Labrusse 1.2.0-9.sme +- Initial release to contribs9 + +* Sun Jan 4 2015 stephane de Labrusse 1.2.0-8.sme +- The ownership and the user access of the Ibay are modifiable by the contrib + +* Mon Dec 15 2014 stephane de Labrusse 1.2.0-7.sme +- added a default db nfs-rules +- added an exception if nfs-rules is removed by the admin + +* Mon Dec 15 2014 stephane de Labrusse 1.2.0-6.sme +- Added an event nfs-conf shorter for the server-manager +- Added a template /etc/exports/20CustomRules for manual settings + +* Sun Dec 7 2014 stephane de Labrusse 1.2.0-5.sme +- added a template of hosts.allow +- added restart nfslock/rpcbind to remoteaccess-update & nfs-update +- display Group description and permissions from ibay account in nfs panel +- added a textarea box for ip of nfsclient +- display status of nfs share in the main panel + +* Sat Dec 6 2014 stephane de Labrusse 1.2.0-4.sme +- Added a panel with en-us locale and validator + +* Tue Nov 25 2014 stephane de Labrusse 1.2.0-3.sme +- Added nfs4-acl-tools for nfsv4 dependency +- Added a template to /etc/exports +- Added a specific event nfs-update + +* Mon Nov 24 2014 stephane de Labrusse 1.2.0-2.sme +- removed portmap to rpcbind in r7.d + +* Tue Sep 16 2014 stephane de Labrusse 1.2.0-1.sme +- Initial release to sme9 + +* Sun Apr 29 2007 Shad L. Lords +- Clean up spec so package can be built by koji/plague + +* Thu Dec 07 2006 Shad L. Lords +- Update to new release naming. No functional changes. +- Make Packager generic + +* Mon Jan 30 2006 Shad L. Lords +- initial + +%prep +%setup + +%build +perl createlinks + +%install +rm -rf $RPM_BUILD_ROOT +(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +rm -f %{name}-%{version}-%{release}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ + > %{name}-%{version}-%{release}-filelist +echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist + +%postun + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}-%{version}-%{release}-filelist +%defattr(-,root,root)