[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/systemd 63d64ad 076/131: generate directive lists from fil
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/systemd 63d64ad 076/131: generate directive lists from files |
Date: |
Sun, 29 Aug 2021 11:35:18 -0400 (EDT) |
branch: elpa/systemd
commit 63d64ad4e6cd86d6559480f6920fbc7244fa13c0
Author: Mark Oteiza <mvoteiza@udel.edu>
Commit: Mark Oteiza <mvoteiza@udel.edu>
generate directive lists from files
---
systemd.el | 118 ++++++-------------------------------------------------------
1 file changed, 10 insertions(+), 108 deletions(-)
diff --git a/systemd.el b/systemd.el
index 8f23668..4022a9d 100644
--- a/systemd.el
+++ b/systemd.el
@@ -81,86 +81,11 @@
"Configuration sections for systemd 225.")
(defconst systemd-unit-directives
- ;; TODO: keep a script of sorts for generating this list. systemd
- ;; source has a python script in tools/ for parsing the
- ;; documentation xml for the unit directives.
- ;;
- ;; forcer on freenode threw together a curl monstrosity for achieving
- ;; the same:
- ;; curl -s
http://www.freedesktop.org/software/systemd/man/systemd.directives.html | tr -d
'\n' | sed 's/>/>\n/g' | sed -ne '/Unit directives/,/Options on the kernel/p' |
sed -ne 's/.*<dt id="\([^-][^"]*\)=">.*/\1/p'
- ;; Quote, wrap with fill-column at 72, insert into list and indent
- '("Accept" "AccuracySec" "After" "Alias" "AllowIsolate" "Also"
- "AppArmorProfile" "AssertACPower" "AssertArchitecture"
- "AssertCapability" "AssertDirectoryNotEmpty" "AssertFileIsExecutable"
- "AssertFileNotEmpty" "AssertFirstBoot" "AssertHost"
- "AssertKernelCommandLine" "AssertNeedsUpdate" "AssertPathExists"
- "AssertPathExistsGlob" "AssertPathIsDirectory" "AssertPathIsMountPoint"
- "AssertPathIsReadWrite" "AssertPathIsSymbolicLink" "AssertSecurity"
- "AssertVirtualization" "Backlog" "Before" "BindIPv6Only" "BindToDevice"
- "BindsTo" "BlockIOAccounting" "BlockIODeviceWeight"
- "BlockIOReadBandwidth" "BlockIOWeight" "BlockIOWriteBandwidth"
- "Broadcast" "BusName" "BusPolicy" "CPUAccounting" "CPUAffinity"
- "CPUQuota" "CPUSchedulingPolicy" "CPUSchedulingPriority"
- "CPUSchedulingResetOnFork" "CPUShares" "Capabilities"
- "CapabilityBoundingSet" "ConditionACPower" "ConditionArchitecture"
- "ConditionCapability" "ConditionDirectoryNotEmpty"
- "ConditionFileIsExecutable" "ConditionFileNotEmpty" "ConditionFirstBoot"
- "ConditionHost" "ConditionKernelCommandLine" "ConditionNeedsUpdate"
- "ConditionPathExists" "ConditionPathExistsGlob"
- "ConditionPathIsDirectory" "ConditionPathIsMountPoint"
- "ConditionPathIsReadWrite" "ConditionPathIsSymbolicLink"
- "ConditionSecurity" "ConditionVirtualization" "Conflicts"
- "DefaultDependencies" "DefaultInstance" "DeferAcceptSec" "Delegate"
- "Description" "DeviceAllow" "DevicePolicy" "DirectoryMode"
- "DirectoryNotEmpty" "Documentation" "Environment" "EnvironmentFile"
- "ExecReload" "ExecStart" "ExecStartPost" "ExecStartPre" "ExecStop"
- "ExecStopPost" "ExecStopPre" "FailureAction" "FileDescriptorName"
- "FileDescriptorStoreMax" "FreeBind" "Group" "GuessMainPID"
- "IOSchedulingClass" "IOSchedulingPriority" "IPTOS" "IPTTL"
- "IgnoreOnIsolate" "IgnoreSIGPIPE" "InaccessibleDirectories"
- "JobTimeoutAction" "JobTimeoutRebootArgument" "JobTimeoutSec"
- "JoinsNamespaceOf" "KeepAlive" "KeepAliveIntervalSec" "KeepAliveProbes"
- "KeepAliveTimeSec" "KillMode" "KillSignal" "LimitAS" "LimitCORE"
- "LimitCPU" "LimitDATA" "LimitFSIZE" "LimitLOCKS" "LimitMEMLOCK"
- "LimitMSGQUEUE" "LimitNICE" "LimitNOFILE" "LimitNPROC" "LimitRSS"
- "LimitRTPRIO" "LimitRTTIME" "LimitSIGPENDING" "LimitSTACK"
- "ListenDatagram" "ListenFIFO" "ListenMessageQueue" "ListenNetlink"
- "ListenSequentialPacket" "ListenSpecial" "ListenStream"
- "ListenUSBFunction" "MakeDirectory" "Mark" "MaxConnections"
- "MemoryAccounting" "MemoryLimit" "MessageQueueMaxMessages"
- "MessageQueueMessageSize" "MountFlags" "NetClass" "Nice" "NoDelay"
- "NoNewPrivileges" "NonBlocking" "NotifyAccess" "OOMScoreAdjust"
- "OnActiveSec" "OnBootSec" "OnCalendar" "OnFailure" "OnFailureJobMode"
- "OnStartupSec" "OnUnitActiveSec" "OnUnitInactiveSec" "Options" "PAMName"
- "PIDFile" "PartOf" "PassCredentials" "PassEnvironment" "PassSecurity"
- "PathChanged" "PathExists" "PathExistsGlob" "PathModified"
- "PermissionsStartOnly" "Persistent" "Personality" "PipeSize" "Priority"
- "PrivateDevices" "PrivateNetwork" "PrivateTmp" "PropagatesReloadTo"
- "ProtectHome" "ProtectSystem" "RandomSec" "ReadOnlyDirectories"
- "ReadWriteDirectories" "RebootArgument" "ReceiveBuffer"
- "RefuseManualStart" "RefuseManualStop" "ReloadPropagatedFrom"
- "RemainAfterElapse" "RemainAfterExit" "RemoveOnStop" "RequiredBy"
- "Requires" "RequiresMountsFor" "Requisite" "Restart"
- "RestartForceExitStatus" "RestartPreventExitStatus" "RestartSec"
- "RestrictAddressFamilies" "ReusePort" "RootDirectory"
- "RootDirectoryStartOnly" "RuntimeDirectory" "RuntimeDirectoryMode"
- "SELinuxContext" "SELinuxContextFromNet" "SecureBits" "SendBuffer"
- "SendSIGHUP" "SendSIGKILL" "Service" "Slice" "SloppyOptions"
- "SmackLabel" "SmackLabelIPIn" "SmackLabelIPOut" "SmackProcessLabel"
- "SocketGroup" "SocketMode" "SocketProtocol" "SocketUser" "Sockets"
- "SourcePath" "StandardError" "StandardInput" "StandardOutput"
- "StartLimitAction" "StartLimitBurst" "StartLimitInterval"
- "StartupBlockIOWeight" "StartupCPUShares" "StopWhenUnneeded"
- "SuccessExitStatus" "SupplementaryGroups" "Symlinks" "SyslogFacility"
- "SyslogIdentifier" "SyslogLevel" "SyslogLevelPrefix"
- "SystemCallArchitectures" "SystemCallErrorNumber" "SystemCallFilter"
- "TCPCongestion" "TTYPath" "TTYReset" "TTYVHangup" "TTYVTDisallocate"
- "TasksAccounting" "TasksMax" "TimeoutIdleSec" "TimeoutSec"
- "TimeoutStartSec" "TimeoutStopSec" "TimerSlackNSec" "Transparent" "Type"
- "UMask" "USBFunctionDescriptors" "USBFunctionStrings" "Unit" "User"
- "UtmpIdentifier" "UtmpMode" "WakeSystem" "WantedBy" "Wants"
- "WatchdogSec" "What" "Where" "WorkingDirectory" "Writable")
- "Configuration directives for systemd 228.")
+ (eval-when-compile
+ (with-temp-buffer
+ (insert-file-contents "unit-directives.txt")
+ (split-string (buffer-string))))
+ "Configuration directives for systemd.")
(defconst systemd-network-sections
'("Match" "Link" "NetDev" "VLAN" "MACVLAN" "MACVTAP" "IPVLAN" "VXLAN"
@@ -169,34 +94,11 @@
"Network configuration sections for systemd 225.")
(defconst systemd-network-directives
- ;; /Network directives/,/Journal fields/p
- '("ARPAllTargets" "ARPIPTargets" "ARPIntervalSec" "ARPProxy" "ARPValidate"
- "AdSelect" "Address" "AllSlavesActive" "AllowPortToBeRoot"
- "Architecture" "BindCarrier" "BitsPerSecond" "Bond" "Bridge"
- "ClientIdentifier" "CopyDSCP" "Cost" "CriticalConnection" "DHCP"
- "DHCPServer" "DNS" "DefaultLeaseTimeSec" "Description" "Destination"
"DiscoverPathMTU"
- "Domains" "DownDelaySec" "Driver" "Duplex" "EmitDNS" "EmitNTP"
- "EmitTimezone" "EncapsulationLimit" "FDBAgeingSec" "FailOverMACPolicy"
- "FallbackDNS" "FallbackNTP" "FastLeave" "ForwardDelaySec" "Gateway"
- "GratuitousARP" "GroupPolicyExtension" "HairPin" "HelloTimeSec" "Host"
- "Hostname" "IPForward" "IPMasquerade" "IPv4LLRoute"
- "IPv6AcceptRouterAdvertisements" "IPv6DuplicateAddressDetection"
- "IPv6FlowLabel" "IPv6HopLimit" "IPv6PrivacyExtensions" "IPv6Token" "Id"
- "KernelCommandLine" "Kind" "L2MissNotification" "L3MissNotification"
- "LACPTransmitRate" "LLDP" "LLMNR" "Label" "LearnPacketIntervalSec"
- "LinkLocalAddressing" "Local" "MACAddress" "MACAddressPolicy" "MACVLAN"
- "MIIMonitorSec" "MTUBytes" "MacLearning" "MaxAgeSec" "MaxLeaseTimeSec"
- "MaximumFDBEntries" "Metric" "MinLinks" "Mode" "MultiQueue" "NTP" "Name"
- "NamePolicy" "OneQueue" "OriginalName" "PacketInfo" "PacketsPerSlave"
- "Path" "Peer" "PoolOffset" "PoolSize" "PreferredSource"
- "PrimaryReselectPolicy" "Remote" "RequestBroadcast" "ResendIGMP"
- "RouteMetric" "RouteShortCircuit" "Scope" "SendHostname" "Source" "TOS"
- "TTL" "Timezone" "TransmitHashPolicy" "Tunnel" "UDP6ZeroCheckSumRx"
- "UDP6ZeroChecksumTx" "UDPCheckSum" "UnicastFlood" "UpDelaySec" "UseBPDU"
- "UseDNS" "UseDomains" "UseHostname" "UseMTU" "UseNTP" "UseRoutes"
- "UseTimezone" "VLAN" "VLANId" "VNetHeader" "VXLAN"
- "VendorClassIdentifier" "Virtualization" "WakeOnLan")
- "Network configuration directives for systemd 228.")
+ (eval-when-compile
+ (with-temp-buffer
+ (insert-file-contents "network-directives.txt")
+ (split-string (buffer-string))))
+ "Network configuration directives for systemd.")
;;;###autoload
(defconst systemd-autoload-regexp
- [nongnu] elpa/systemd 175d45f 047/131: checkdoc, (continued)
- [nongnu] elpa/systemd 175d45f 047/131: checkdoc, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 05dd16c 049/131: systemd 226, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd a2ec338 055/131: use loop, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 3eb9390 058/131: add lists of directives, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 070e15e 060/131: autoload temp files generated by sd's tempfn_random, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd a86323e 059/131: v229, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 9fc0545 061/131: move systemd-font-lock-keywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd f306614 066/131: dang spaces, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd b004b37 068/131: autoload sorcery, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd de5da7f 073/131: update Makefile, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 63d64ad 076/131: generate directive lists from files,
ELPA Syncer <=
- [nongnu] elpa/systemd fe443ac 078/131: use font-lock-defaults to disable syntax highlighting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 2e1f739 081/131: update readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 4c073b0 091/131: missed one, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 4c1b2be 097/131: bump, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd bd94a2c 094/131: shim in support for nspawn settings files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 28601d8 101/131: woops, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 2c71ec5 103/131: systemd 234.11, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 16ba942 113/131: rename tests directory, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 839094d 114/131: use rx here, ELPA Syncer, 2021/08/29
- [nongnu] elpa/systemd 23c0caf 115/131: extend anchored matches past the current line if \ broken, ELPA Syncer, 2021/08/29