Portlardan kurulan uygulama hangi seçenekler ile oluşturuldu.

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 245

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Portlardan kurduğunuz bir uygulamanın hangi seçenekler ile kurulduğunu görmek isterseniz ilgili portun altında "make showconfig" komutunu vermeniz gerekmektedir.

Kod:
[root@test ~]# cd /usr/ports/www/apache22 [root@test /usr/ports/www/apache22]# make showconfig ===> The following configuration options are available for apache-2.2.13: APR_FROM_PORTS=off "Use devel/apr as APR (preferred)" THREADS=off "Enable threads support in APR" MYSQL=on "Enable MySQL support for apr-dbd" PGSQL=off "Enable PostgreSQL support for apr-dbd" SQLITE=off "Enable SQLite support for apr-dbd" IPV6=on "Enable IPv6 support" BDB=off "Enable BerkeleyDB dbm" AUTH_BASIC=on "Enable mod_auth_basic" AUTH_DIGEST=on "Enable mod_auth_digest" AUTHN_FILE=on "Enable mod_authn_file"

Portlardan Kurulan Uygulamaların Oluşturulma Seçenekleri Hakkında Detaylı Bilgi

FreeBSD tabanlı sistemlerde, özellikle Metin2 sunucular gibi oyun veya servis sunucularının kurulumu sırasında portlardan yararlanmak oldukça yaygındır. Bu yöntem, derleme sırasında kullanıcıya birçok özelleştirme seçeneği sunar. Bu yazıda, portlardan kurulan uygulamanın hangi seçeneklerle oluşturulduğunu detaylı olarak ele alacağız.

FreeBSD Port Sistemi Nedir?
FreeBSD port sistemi, kaynak koddan yazılımların derlenip yüklenmesini sağlayan güçlü bir yapıdır. Her port, yazılımın nasıl derleneceğini, bağımlılıklarını ve yapılandırma seçeneklerini belirten dosyalardan oluşur. Özellikle Metin2 gibi oyun sunucularında, derleme sırasında hangi özelliklerin aktif edileceği ya da devre dışı bırakılacağı önemlidir.

Port Yapılandırma Seçenekleri
Bir porttan uygulama kurarken, genellikle aşağıdaki komutla başlarız:
Kod:
cd /usr/ports/category/port_name && make config

Bu komut çalıştırıldığında, dialog arayüzü üzerinden yapılandırma menüsü açılır. Bu menüde, uygulamanın derlenmesinde kullanılacak modüller, bağımlılıklar ve diğer tercihe bağlı özellikler seçilir.

Örnek: Metin2 Sunucusu İçin Port Yapılandırması
Metin2 sunucularında yaygın olarak kullanılan portlar arasında games/metin2-server veya benzeri yer alabilir. Bu portun yapılandırma menüsünde şu tür seçenekler yer alabilir:

- MySQL/MariaDB desteği
- Python entegrasyonu
- Boost kütüphaneleri kullanımı
- Güvenlik duvarı (PF) ile entegrasyon
- Jail ortamında çalıştırma desteği

Her bir seçenek, derlenen uygulamaya farklı bir fonksiyonellik kazandırır. Örneğin, MySQL desteği etkinleştirilmezse sunucu veritabanı bağlantısı kuramaz.

Derleme Seçeneklerini Kaydetmek ve Tekrar Kullanmak
Yapılandırma ayarları, /var/db/ports/ dizini altında saklanır. Bu sayede aynı yapılandırmayı tekrar kullanmak kolaydır. Ayrıca, birden fazla sunucuya aynı yapılandırmayı aktarmak istiyorsanız, bu dizindeki ayarları yedekleyebilirsiniz.

make.conf ve makefile Kullanımı
Port yapılandırmaları, /etc/make.conf dosyası üzerinden de önceden tanımlanabilir. Bu dosyada PORT_OPTIONS değişkeni kullanılarak portların varsayılan yapılandırması belirlenir.

Port Kurulumu Sonrası Kontrol
Kurulum tamamlandıktan sonra, uygulamanın hangi seçeneklerle derlendiğini kontrol etmek için aşağıdaki komut kullanılabilir:
Kod:
pkg info -l package-name

Bu komut, paketin içerdiği dosyaları listeler. Ayrıca, port klasöründe make showconfig komutuyla yapılandırılmış seçenekleri görebilirsiniz.

Sonuç
FreeBSD üzerinde Metin2 gibi sunucular kurarken, port sistemi sayesinde uygulamalar ihtiyaçlara göre özelleştirilerek derlenir. Bu da hem performans hem de güvenlik açısından büyük avantaj sağlar. Port yapılandırma menüsü sayesinde, sadece gerekli bileşenler yüklendiği için sistem daha hafif ve optimize çalışır.

Kaynaklar



Detailed Information on How Applications Installed via Ports Are Built with Specific Options

In FreeBSD-based systems, especially for game or service servers like Metin2, installing applications via ports is quite common. This method provides users with many customization options during compilation. In this article, we will examine in detail the options used when building applications from ports.

What Is the FreeBSD Ports System?
The FreeBSD ports system is a powerful mechanism that allows software to be compiled and installed from source code. Each port consists of files that define how the software is compiled, its dependencies, and configuration options. Especially in game servers like Metin2, which features are activated or disabled during compilation is important.

Port Configuration Options
When installing an application from a port, we typically start with a command such as:
Kod:
cd /usr/ports/category/port_name && make config

Executing this command opens a configuration menu through the dialog interface. Within this menu, modules, dependencies, and optional features for the application’s build can be selected.

Example: Configuring a Metin2 Server via Ports
Among common ports used in Metin2 servers is games/metin2-server or similar. The configuration menu of such a port may include options such as:

- MySQL/MariaDB support
- Python integration
- Boost library usage
- Integration with firewall (PF)
- Support for running within a jail environment

Each option adds different functionality to the compiled application. For example, if MySQL support is not enabled, the server cannot establish database connections.

Saving and Reusing Build Options
Configuration settings are stored under the /var/db/ports/ directory. This makes it easy to reuse the same configurations. Additionally, if you want to apply the same configuration across multiple servers, you can backup the settings in this directory.

Using make.conf and Makefiles
Port configurations can also be predefined via the /etc/make.conf file. Within this file, the PORT_OPTIONS variable can be used to define default configurations for ports.

Checking Configuration After Installation
After installation is complete, the following command can be used to check with which options the application was built:
Kod:
pkg info -l package-name

This command lists the files included in the package. Moreover, within the port directory, the make showconfig command shows the configured options.

Conclusion
When installing servers like Metin2 on FreeBSD, the port system allows applications to be customized and compiled according to specific needs. This offers significant advantages both in performance and security. Since only necessary components are installed via the port configuration menu, the system runs lighter and more efficiently.

Resources
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt